Skip to content

Instantly share code, notes, and snippets.

@jennielees
Created February 6, 2014 16:25
Show Gist options
  • Save jennielees/8847567 to your computer and use it in GitHub Desktop.
Save jennielees/8847567 to your computer and use it in GitHub Desktop.
def my_function():
print "I am a function!"
def main():
print "I am the main function"
if __name__=='__main__':
print "I am being run as 'main'"
# Try uncommenting this and see what happens.
# Or change it to my_function()
# main()
from myfile import *
print "I'm importing myfile."
my_function()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment