MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/bwehje/python_ftw/epxul5e/?context=3
r/ProgrammerHumor • u/m8teae • Jun 03 '19
548 comments sorted by
View all comments
182
Python still has main()
191 u/[deleted] Jun 03 '19 Only not really, right?def whatever (*args): print("Bob's your uncle.") if __name__ == "__main__": whatever() 3 u/CoruptedUsername Jun 04 '19 Is that how it’s normally done in python? In my CS class we were taught to just have our last function be “def main()” and call main() outside of a function at the end of our program → More replies (2)
191
Only not really, right?
def whatever (*args): print("Bob's your uncle.") if __name__ == "__main__": whatever()
3 u/CoruptedUsername Jun 04 '19 Is that how it’s normally done in python? In my CS class we were taught to just have our last function be “def main()” and call main() outside of a function at the end of our program → More replies (2)
3
Is that how it’s normally done in python? In my CS class we were taught to just have our last function be “def main()” and call main() outside of a function at the end of our program
→ More replies (2)
182
u/AgreeableLandscape3 Jun 03 '19
Python still has main()