Created
February 6, 2014 16:25
-
-
Save jennielees/8847567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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