Total Function


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():


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


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!


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