+ 1

I dont know whats wrong with it... please help

ans=input("are u a lady?") age=int(input()) If (ans=="yes" and age>=18 and age<=30): print("hi, pretty girl") else print("88") Is there any problems with line3??

21st May 2022, 10:40 AM
Cham Sum Lau
2 Answers
+ 3
It is "if", not "If". Check the indentation of the print() after "else" the ":" is missing
21st May 2022, 10:50 AM
Lisa
Lisa - avatar
0
Thank you very much
21st May 2022, 10:52 AM
Cham Sum Lau