keyword_string_args - print 'Your name reversed is'

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

View Full Document Right Arrow Icon
# This program demonstrates passes two strings as # keyword arguments to a function. # def main(): first_name = raw_input('Enter your first name: ') last_name = raw_input('Enter your last name: ')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: print 'Your name reversed is' reverse_name(last=last_name, first=first_name) def reverse_name(first, last): print last, first # Call the main function. main() m...
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