Last active
January 23, 2017 06:45
-
-
Save hackjutsu/0adc166e271facc80803f231d8babec9 to your computer and use it in GitHub Desktop.
[Define main() function for Python] We can run the script from terminal like: python main_func.py
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
# $ python main_func.py | |
def main(): | |
print("Hello from main()") | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment