Answer to Question #286235 in Python for John

Question #286235

Security Check

by CodeChum Admin

Woah there, what are you doing roaming around past the curfew? I'm going to have to ask for some identification.


Instructions:

  1. Input an integer. This will represent your age.
  2. If the inputted age is greater than or equal to 18, print out "Adult". Otherwise, print "Minor".

Input

A line containing an integer.

20

Output

A line containing a string.

Adult




1
Expert's answer
2022-01-10T11:19:52-0500
print("Woah there, what are you doing roaming around past the curfew? I'm going to have to ask for some identification.")
age=int(input("What is your age?"))
if age>=18:
    print('Adult')
else:
    print('Minor')

Woah there, what are you doing roaming around past the curfew? I'm going to have to ask for some identification.
What is your age?20
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