0
Input programm error
x=input("enter a number") if x>10: print("x is greater than 10")
1 Resposta
+ 8
Correct:
x = int(input("Enter a number\n") #conversion to int
if x > 10:
print("x is greater than 10") #Indentation
x=input("enter a number") if x>10: print("x is greater than 10")