0
Why is't work this code?
4 Respostas
+ 2
U haven't define x
there are many mistakes
1. x is not a function .. as u are calling x()
2. where is your variables x = input()
3. u can't use intput(x) as it is not define
https://www.sololearn.com/Course/JUMP_LINK__&&__Python__&&__JUMP_LINK-for-Beginners/?ref=app
+ 2
As Per HrCoder suggestion
x = input()
if x=="10":
print ("pass")
else:
print ("fail")
+ 1
Subod Hiruna
I think you need to learn again about basic syntax.
0
input=x #<---error : add brackets () after
↑ input.
#input() = x
# *But, you should use int(input()) here.
# int(input()) = x
if x==10:
print ("pass")
else:
print ("fail")
x() #<---error : remove this line