3

How do you create a Python function?

Comments
  • 21
    I strap a button, a 12 volt battery and a snake together. The python now does things when I press my button.
  • 11
  • 2
    lambda: True
  • 2
    os.system("jshell <<< 'int foobar() { return 42; }'")
  • 2
    First, you rent a hall.

    Then you find a caterer.

    Then you hire a band.

    Then you invite all your python friends.
  • 1
    By typing it out.
  • 3
    I'm sure there's a JQuery plugin for that
  • 1
    1: from function import def
    2: def yourStuff(applePie):
    print("Quentin Fucked Up!")
    3: yourStuff(float(420.69))
    4; Profit?
    5: Profit!
Your Job Suck?
Get a Better Job
Add Comment