Codecademy Logo

Circuit Playground Express: Part 1

Print Cheatsheet

Python function default return value

If we do not not specify a return value for a Python function, it returns None. This is the default behaviour.

# Function returning None def my_function(): pass print(my_function()) #Output None