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

3rd Nov 2016, 10:39 PM
code-junkie
code-junkie - avatar
3 Answers
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.
3rd Nov 2016, 11:36 PM
Mateusz Wiezik
Mateusz Wiezik - avatar
0
if age >= 21: your print statement after that does not have a closing ) ;)
3rd Nov 2016, 11:37 PM
Frédéric Charette
Frédéric Charette - avatar
0
also; your last statement you are not old enough to pilot a plane is missing ")
3rd Nov 2016, 11:38 PM
Frédéric Charette
Frédéric Charette - avatar