Mamstricks Python
Sunday, 1 February 2015
python 3.4.2 part 10 Add two numbers using def function
File ->new file
copy below code
/********************************/
def add_numb(*args):
total=0
for x in args:
total=+x
print(total)
add_numb(3)
add_numb(3,5,6)
/************************************/
then save it
Run->Run module(press f5)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment