Q:

write a python program that takes the user age as input and prints the classification according to the following:

0

write a python program that takes the user age as input and prints the classification according to the following:

1. age>=18 then prints "Elgible to donate blood"

2. age>=65 then prints "Too old to donate blood"

3.age<18 then prints "Too young to donate blood"

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

age=int(input('please enter your age:'))
if age>=65:
    print('Too old to donate blood')
elif age>=18:
    print('Elgible to donate blood')
else: print('Too young to donate blood')

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now