Python By Code
Thursday, September 10, 2015
Simple demonstration of *argc
def sumall(*argc):
sum=0
for i in argc:
sum=sum + i
return sum
print sumall(1,2,3)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment