0

Can any one corrcet this code?

age = 0 while age < 50: age +=1 if age==1: print (" the first birthday for you") elif age==7: print ("school entry") elif age ==18: print ("teenager") elif age == 25: print ("university entrance") elif age ==28: print (" find a jab") elif age == 35: print ("work hard") elif age == 45: print ("old person")

28th May 2022, 12:46 PM
Mohamad ali
3 Antworten
0
age = 0 while age < 50: age +=1 if age==1: print ("The first birthday for you") elif age==7: print ("school entry") elif age ==18: print ("teenager") elif age == 25: print ("university entrance") elif age ==28: print ("Find a job") elif age == 35: print ("work hard") elif age == 45: print ("old person") indent error
28th May 2022, 12:53 PM
Mihir Lalwani
Mihir Lalwani - avatar
0
Yes they dont line up correctly. U need to pay attention to that. https://code.sololearn.com/cPV0UkzUi6Ll
28th May 2022, 2:47 PM
wouter cleyman
0
Thank you
28th May 2022, 2:48 PM
Mohamad ali