Professional Documents
Culture Documents
Difficulty of
Problems You
Can Solve
Progress in Python
Complete Python Bootcamp
Difficulty of
Problems You
Can Solve
Basic Data
Types
Progress in Python
Complete Python Bootcamp
Difficulty of
Problems You
Can Solve
Loops and
Logic
Basic Data
Types
Progress in Python
Complete Python Bootcamp
Functions
Difficulty of
Problems You
Can Solve
Loops and
Logic
Basic Data
Types
Progress in Python
Complete Python Bootcamp
def name_of_function():
def name_of_function():
def name_of_function():
def name_of_function():
def name_of_function():
def name_of_function():
’’’
Docstring explains function.
’’’
def name_of_function():
’’’
Docstring explains function.
’’’
def name_of_function():
’’’
Docstring explains function.
’’’
print(“Hello”)
Code then goes inside the
function.
Complete Python Bootcamp
def name_of_function():
’’’
Docstring explains function.
’’’
print(“Hello”)
Function can then be
executed/called to see the
result.
>> name_of_function()
>> Hello
Complete Python Bootcamp
def name_of_function():
’’’
Docstring explains function.
’’’
print(“Hello”)
>> name_of_function()
Resulting Output
>> Hello
Complete Python Bootcamp
def name_of_function(name):
’’’
Docstring explains function.
’’’
print(“Hello ”+name)
def name_of_function(name):
’’’
Docstring explains function.
’’’
print(“Hello ”+name)
def add_function(num1,num2):
return num1+num2
def add_function(num1,num2):
return num1+num2
>> print(result)
>> 3
Complete Python Bootcamp