41.0k views
5 votes
What is wrong with this line of python code

userGuess = int(input("Guess a number between 1 and 20: "))

User JohnPaul
by
5.1k points

1 Answer

1 vote

Answer:

Step-by-step explanation:

Statement is correct . It will prompt one to enter an number in string format .

The number entered is converted into an integer

User Reachify
by
5.5k points