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")

20th Jun 2019, 9:13 PM
Sam
Sam - avatar
1 Answer
0
int(input(...)) will work fine.
20th Jun 2019, 9:16 PM
Luk
Luk - avatar