I think I read a suggestion somewhere to wrap the code where a Python
script starts in a main() function, so one has
def main():
print "hi"
main()
instead of
print "hi"
What are the advantages of doing this?
script starts in a main() function, so one has
def main():
print "hi"
main()
instead of
print "hi"
What are the advantages of doing this?
Comment