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
n = int(input('Enter programmer\'s age: '))
if n >= 18:
print('Adult')
else:
print('minor')
Enter programmer's age: 19
Adult
Comments
Leave a comment