0

# Input programm error

x=input("enter a number") if x>10: print("x is greater than 10")

1 Answer

+ 8

Correct:
x = int(input("Enter a number\n") #conversion to int
if x > 10:
print("x is greater than 10") #Indentation

0

x=input("enter a number") if x>10: print("x is greater than 10")

1 Answer

+ 8

Correct:
x = int(input("Enter a number\n") #conversion to int
if x > 10:
print("x is greater than 10") #Indentation