0

Why did my code not run?

I tried using words instead of numbers, just to play around with the concept of "if else" statements, I wanted to know the reason as to why my code did not run "yes" after I typed in

14th Jan 2020, 7:27 PM
Antik
2 ответов
+ 2
Could you please post the link here not in the tag
14th Jan 2020, 7:30 PM
Jnn
Jnn - avatar
+ 1
Antik I saw your code in your profile. From line 13 move your code like the ones above. It is not executed because of the if-else statements above. Indentation is very important in Python. Edit: Or just make num = 0 on the first line
14th Jan 2020, 9:13 PM
Mihai Apostol
Mihai Apostol - avatar