+ 1
why does this code shows error?
z=input("writesome") print(z) if z>5: print("p") else: print("f")
7 Answers
+ 12
z=int(input("writesome"))
print(z)
if z>5:
print("p")
else:
print("f")
# There's a need to take input as int when dealing with integers! Indentation is a must!
+ 9
@Art Creator : Here it is...
https://code.sololearn.com/cc8XyR3Z51F1/?ref=app
+ 7
# @Art, please add indentations! And copy this code, it works :
z=int(input("writesome"))
if z>15:
print("pass")
else:
print("fail")
0
Python is case-sensitive
0
z=int(input"writesome")
if z>15:
print("pass")
else:
print("fail")
0
This code is also showing error
0
Please suggest me the code