Last active
September 23, 2020 00:18
-
-
Save codetombomb/732e853cfd6f0f065cf1e9abff4a71fb to your computer and use it in GitHub Desktop.
Starting a Python function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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