75.8k views
0 votes
Which entry by the user will cause the program to halt with an error statement?

# Get a guess from the user and update the number of guesses.
guess = input("Guess an integer from 1 to 10.)
guess = int(guess)
seven
3
65
-25

User Kmm
by
5.0k points

1 Answer

4 votes

Answer:

seven

Step-by-step explanation:

Look at python data types

  • float=decimal
  • int=integer
  • str=string

seven is a string not integer

So it will raise error

User Thomas Deutsch
by
4.8k points