What will be the output of the following lines of code and the user’s response? >>> answer = input("What does your dog weigh? ")
What do you weigh? 85.7
>>> weight = int(answer)
>>> print("The weight is" , weight)
An error occurs.
The weight is 85.7
The weight is 85
The weight is 86

Solved
Show answers

Ask an AI advisor a question