Why is't work this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
8th Sep 2021, 3:41 AM
Subod Hiruna
Subod Hiruna - avatar
4 Answers
+ 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
8th Sep 2021, 3:43 AM
Pariket Thakur
Pariket Thakur - avatar
+ 2
As Per HrCoder suggestion x = input() if x=="10": print ("pass") else: print ("fail")
8th Sep 2021, 3:49 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Subod Hiruna I think you need to learn again about basic syntax.
8th Sep 2021, 5:39 AM
A͢J
A͢J - avatar
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
8th Sep 2021, 4:56 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar