154k views
2 votes
What is the output for the following portion of a program? Assume the user enters 162.5.

strWeight = input("Enter your weight in pounds: ")
weight = float(strWeight)
print (weight)
162.5
O 162
O 163
O An error occurs.

2 Answers

2 votes

Answer:

162.5

Step-by-step explanation:

just took this on edge. have a good one!

User Viktorija
by
4.4k points
6 votes

If the user enters 162.5, the output will be 162.5

User Kit Grose
by
5.6k points