+ 3
Am stuck in elif part ..help!
5 Respuestas
+ 4
https://code.sololearn.com/cLzQERzpnbkC/?ref=app
You indented elif and else wrongly.
Edit: other things which I think are mistakes, fixed.
+ 6
if 10>5:
print('10 greater than 5')
print('program continues')
x=6
if x==5:
print("yes")
elif x==6:
print("it matches!!")
else:
print("program ended.")
jest put if, elif and else statements in the same colomn then your code be fine
+ 3
As estifanos tekiea pointed out, it's your indentation.
Remember that Python uses indentation to control program flow instead of using brackets like most other languages.
+ 3
thanks a lot guys for helping me😇
+ 1
you are welcome! Daya