Meta:Samples/Software: Difference between revisions
Jump to navigation
Jump to search
| Line 35: | Line 35: | ||
<syntaxhighlight lang="python" line> | <syntaxhighlight lang="python" line> | ||
def main(): | |||
"""Lots of useless code here.""" | |||
if True: | |||
print "Hello, world!" | |||
return None # Explicitly returning None! | |||
else: | |||
raise Exception | |||
if __name__ == "__main__": | |||
main() | |||
# | |||
</syntaxhighlight> | </syntaxhighlight> | ||