Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Last active January 23, 2017 06:45
Show Gist options
  • Save hackjutsu/0adc166e271facc80803f231d8babec9 to your computer and use it in GitHub Desktop.
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
# $ 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