3

How do you create a Python function?

Comments
  • 20
    I strap a button, a 12 volt battery and a snake together. The python now does things when I press my button.
  • 13
  • 4
    lambda: True
  • 2
    os.system("jshell <<< 'int foobar() { return 42; }'")
  • 2
    By typing it out.
  • 4
    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!
Add Comment