Codecademy Logo

Circuit Playground Express: Part 1

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

Related Courses


Learn Hardware Programming with CircuitPython

Beginner friendly

2 Lessons