+ 1
Why isn't any output coming out ?
Pls help, here is the code in python- #Basics x = input() if x == int(1111): print("One Thousand One Hundred Eleven") if x == int(9999): print("Nine Thousand Nine Hundred Ninety Nine")
3 ответов
+ 2
You need to change x to an int, not the numbers.
x = int(input())
if x == 1111:
....
+ 1
Please convert string x to integer
x = int(x)
No need to write 1111 and 9999 inside int function
Correct:
x = input()
x = int(x)
if x == 1111:
print("One Thousand One Hundred Eleven")
if x == 9999:
print("Nine Thousand Nine Hundred Ninety Nine")
0
you didn't convert input() to int