0
Whats wrong here.. showing error
x = input() y = x if y > 18 : print('you cant access in this program') else: print('you are welcome')
7 Réponses
+ 1
int(input())
input returns string
+ 1
else: is indented in your code but it should start level with the if above it.
if y > 18:
print(...)
else:
print(...)
0
Here, input gives string, so you should use
X= int(input)
0
I got the 2nd one.. what about 1st error
0
int(input())
if y>18:
print(....)
else:
print(...)