Ask Question

What is wrong with this line of python code

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

+3
Answers (1)
  1. 13 January, 10:14
    0
    Statement is correct. It will prompt one to enter an number in string format.

    The number entered is converted into an integer
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is wrong with this line of python code userGuess = int (input ("Guess a number between 1 and 20: ")) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers