Answer to Question #235880 in Python for Isabel Cortez

Question #235880

Input


Programmer's age


Description

N/A


Constraints

N/A


Sample

N/A


Output


The first line will contain a message prompt to input the Programmer's age.

The second line will contain either "Adult" or "Minor".


Enter·the·Programmer's·age:·19

Adult


1
Expert's answer
2021-09-12T07:26:22-0400
n = int(input('Enter programmer\'s age: '))
if n >= 18:
  print('Adult')
else:
  print('minor')

Enter programmer's age: 19
Adult

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS