129k views
1 vote
Whats wrong with this code​

Whats wrong with this code​-example-1
User Theller
by
5.2k points

1 Answer

3 votes

You're not adding your temperature to the total so total will always be 0. Do something like this:

total += float(input("Enter Temperature: "))

You can directly add the user entered value without creating an extra variable.