0
Help I'm so lost
age = 21 if age > 16 : print("you are old enough to drive") else : print("you are not old enough to drive") if age >=21 : print("you are old enough to pilot a plane" elif age >=16 : print("you are old enough to pilot a plane") else : print("you are not old enough to pilot a plane
3 Réponses
0
age = 21
if age > 16 :
print("you are old enough to drive")
else :
print("you are not old enough to drive")
if age >=21 :
print("you are old enough to pilot a plane")
elif age >=16 :
print("you are old enough to pilot a plane")
else :
print("you are not old enough to pilot a plane")
if age >= 1 and age <= 18:
print("you get a birthday")
elif age == 21 or age >= 65:
print("you get a birthday")
elif not age == 30:
print("you dont get a birthday")
else :
print("you gt a birthday party")
I took and fixed your code. Compare and see where you made a mistake.You forgot few closing brackets and try to work on code indentation.
0
if age >= 21:
your print statement after that does not have a closing )
;)
0
also; your last statement you are not old enough to pilot a plane is missing ")