+ 1
Doesn't work
x=int(input()) if x<5: print("I got this!") elif x>10: print("Good luck out there!") elif x==5: print("Help me Batman") elif x==6: print("Help me Batman") elif x==7: print("Help me Batman") elif x==8: print("Help me Batman") elif x==9: print("Help me Batman") elif x==10: print("Help me Batman") Why this doesn't work?
1 Answer
+ 4
You wrote 'luck' without capital, but the task description says 'Luck'.
Don't make these tasks unnecessarily hard for yourself - just copypaste the required output from the description right into your code!