113k views
0 votes
Basic python coding, What is the output of this program? Assume the user enters 2, 5, and 10.

numA = 0
for count in range(3):
answer = input ("Enter a number: ")
fltAnswer = float(answer)
numA = numA + fltAnswer
print (numA)
Thanks in advance!
:L

1 Answer

1 vote

Answer:

17.0

Step-by-step explanation:

I ran it for you. You could also try that (go to replit).

Basic python coding, What is the output of this program? Assume the user enters 2, 5, and-example-1
User Serkanozel
by
3.6k points