Last active
December 17, 2015 12:09
-
-
Save damontallen/5607697 to your computer and use it in GitHub Desktop.
This is a .py download of an IPython Notebook
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
# -*- coding: utf-8 -*- | |
# <nbformat>3.0</nbformat> | |
# <codecell> | |
script = __name__ == '__main__' | |
# <codecell> | |
def print_something(): | |
print("This is a function") | |
# <codecell> | |
if script: | |
print_something() | |
# <codecell> | |
print("imported yet?") | |
# <codecell> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment