Skip to content

Instantly share code, notes, and snippets.

@codetombomb
Last active September 23, 2020 00:18
Show Gist options
  • Save codetombomb/732e853cfd6f0f065cf1e9abff4a71fb to your computer and use it in GitHub Desktop.
Save codetombomb/732e853cfd6f0f065cf1e9abff4a71fb to your computer and use it in GitHub Desktop.
Starting a Python function
# This is a comment. Comments start with the '#'
# Function one (for demonstration purposes)
def function_name(parameter):
#This is the functions body
#The body is defined by the indention at the begining of the line
print(parameter)
# Function two
def function_two():
print("This is function two")
function_two()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment