Skip to content
Sign upLog in
← Back to Community
Python Functions Tutorial!
Profile icon
CodingElf66

This is a Python Tutorial about functions

def func(): print("Hello world")

This is an example of a function. To learn more, look at the code in the reply posted below.

Voters
Profile icon
valfina
Profile icon
FFireFlow
Profile icon
currygod11542
Profile icon
RobynChan
Profile icon
JunWeiWei4
Profile icon
orekihotarougen
Profile icon
Harsheetak
Profile icon
Fulledc
Profile icon
FavorO1
Profile icon
CodingElf66
Comments
hotnewtop
Profile icon
DynamicSquid

Nice tutorial! Just a tip though for line 57

# this can be changed... if password == False: # ... to this if not password:
Profile icon
CodingElf66

@DynamicSquid
It's the same thing, I know :), but I just like using the '==' in Python, because to me, it makes a little more sense.

Profile icon
DynamicSquid

@JeffreyChen13
I unlisted this one as it's very similar to this: https://replit.com/talk/learn/Python-Functions-Tutorial/141890

I left a suggestion in that tutorial