Total Function


#1

I got the code correct but can someone explain me why to create the variable total we just write

total = 0

instead of:

def total():


#2

In python you declare variable as:
name = value, while def total() is function named total


#3

Thank you so much! When I found out the stupid question I made I wanted to delete the post but you had already replied.

Thank you again!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.