You are viewing a single comment's thread. Return to all comments →
* means taking everything 0 or more.
def fun(*args): total = 0 for i in args: total += i return total print(fun()) print(fun(1)) print(fun(1, 2, 3))
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
* means taking everything 0 or more.