Codecademy Logo

Circuit Playground Express: Part 1

Related learning

  • Learn how to code for various electronic devices in this introduction to hardware programming with CircuitPython.
    • With Certificate
    • Beginner Friendly.
      2 hours

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

Learn more on Codecademy

  • Learn how to code for various electronic devices in this introduction to hardware programming with CircuitPython.
    • With Certificate
    • Beginner Friendly.
      2 hours