Easy
is_adult() Method
Write
class Person with a name and age and a method is_adult() that returns True when age is 18 or more. Read name and age and print is_adult().Input
Two lines.
Output
True or False.
Sample 1
Input
Mim 15
Output
False
Sample 2
Input
Rafi 18
Output
True
Output appears here