the program is not working
help me solve the problem it is not working pls anyone who can help me on this task.....
Voters
RYANTADIPARTHI
This is the correct code.
age = int(input("Enter your age")) if age > 15: print(" you can apply for scholarship") elif age > 100: print("you should be dead") else: print(" you can not apply for scholarship") print("Thank you")
ViekMishra
@RYANTADIPARTHI bro the code is not showing your dead try it
First problem. You indented the
elif
statement. You should put it on the same line as theif
statement.Second problem. You used
elif
. if you useelif
you will put the condition on the same line. if you don't want to do that you can just make itelse
.@ch1ck3n yeah bro thank you but the code your saying
age = int(input("Enter your age"))
if age > 15:
print(" you can apply for scholarship")
else:
print(" you can not apply for scholarship")
print("Thank you")
elif age > 100:
print("You should be dead")
it does not work
@ViekMishra i'm sorry, here's the corerct code
please click the checkbox next to my name if this helped
@ch1ck3n age = int(input("Enter your age"))
if age < 15:
print(" you can apply for scholarship")
elif age > 100:
print("You should be dead")
else:
print(" you can not apply for scholarship")
print("Thank you")
i guess this is the correct code bro