global2 - def show_number(): print 'The number you entered...

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

View Full Document Right Arrow Icon
# Create a global variable. number = 0 n def main(): global number number = input('Enter a number: ') show_number()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: def show_number(): print 'The number you entered is', number # Call the main function. main() m...
View Full Document

Ask a homework question - tutors are online