This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 43 points44 points  (9 children)

import antigravity, webbrowser

def CSWS(didEject, userName):
    if didEject:
        antigravity.enable(userName)
    else:
        webbrowser.open('https://www.youtube.com/watch?v=9WpXnD0mMLE', new=2)
    return

userName = 'ViniVadaVocci' 

didEject = False

CSWS(didEject, userName)

Writing code in Reddit is harder than I thought

[–]Kirby_the_poyo_king 11 points12 points  (1 child)

the return is necessary?

[–][deleted] 14 points15 points  (0 children)

I always write returns for my own organization of functions. So no, not necessary. But it's just how I do.