212k views
4 votes
NumA = 0

for count in range(4):
answer = input ("Enter a number: ")
fltAnswer = float(answer)
numA = numA + fltAnswer
print (numA)
Output:

User Fanda
by
4.6k points

2 Answers

2 votes

Answer:

14.0

Step-by-step explanation:

e2022, the ".0" must be there for it to be correct

User Topherjaynes
by
5.7k points
4 votes

Answer:

14.0

Step-by-step explanation:

The code puts each int into a float, and adds them. It ends up as 14.0. not 14.

User Sze
by
4.7k points