+ 1
Still stuck at the if statement part..i keep getting syntax error: invalid syntax for typing this..
x= int(input("Scores")) if x==20: print("good") else: print("bad") print("program ended") Is there any error in this code? and help me check the indent too.Thanks
6 Réponses
+ 1
This program works perfectly. If you could share your actual code, we might be able to help you find your problem
+ 1
Thats the actual code..python
+ 1
But it works..
At least can you tell me what the error message is or what line is it on?
+ 1
The error is on that print(program ended) line..
i am typing it on console..
How will the output look like