0
Why is there an error in this code
x = input(int("Enter a number:")) print (x) if x > 5: print("10 greater than 5") print("Program ended")
1 Answer
0
int(input(...)) will work fine.
x = input(int("Enter a number:")) print (x) if x > 5: print("10 greater than 5") print("Program ended")