Attachment 'lecture6_stacy.py'
Download
Toggle line numbers
1 #!/usr/bin/python
2
3 def adder( num1 , num2):
4 added = num1 + num2
5 return added
6
7 def multiply( num1 , num2):
8 multip = num1*num2
9 return multip
10
11 #4 + (9*3)
12
13
14 if __name__ == "__main__":
15 a = multiply( 9 , 3)
16 answer = adder(4, a)
17
18 print answer
19
20
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.