0
Help an error
Whenever I run this code there is an error please help me my brain hurts. https://sololearn.com/compiler-playground/cWuqxmBp0ckh/?ref=app
2 Antworten
+ 3
else does not accept any conditions
so your elif have to be modified
money = int(input('#x27;))
print(money)
if money < 40:
print ('your poor')
elif money >= 40 and money <= 80:
print ('you got money')
else:
print ('give me your money')
python also accepts the alternative notation
elif 40 <= money <= 80:
0
Thank you