75.9k 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
7.9k 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
7.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.