+ 3
Why isnt this working? Pls help
8 Respuestas
+ 1
use this:
print ("wot 1+1")
(x)=input("answer here:")
if x != "2":
print ("wrong")
else:
print ("well done")
errors:
there was no colon after if and else.
there was unnecessary indention for else
x can't have quotations
use != instead of not
+ 9
lol.. paul.. but 1+1 is 2.. 😊
and need to convert input to int
int(x) as input is string
+ 1
thanks for the help I really appreciate it
+ 1
@Paul
it should be !=
+ 1
!= means not equal
if 1+1 is not 2 then its wrong
if it is well done
if yours works then I don't know