multiple_args - # and displays their sum. def...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
# This program demonstrates a function that accepts # two arguments. # def main(): print 'The sum of 12 and 45 is' show_sum(12, 45) # The show_sum function accepts two arguments
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: # and displays their sum. def show_sum(num1, num2): result = num1 + num2 print result # Call the main function. main()...
View Full Document

This note was uploaded on 07/15/2010 for the course CSE CSE1530 taught by Professor Lew during the Spring '09 term at York University.

Ask a homework question - tutors are online