Lesson 17 of 62 ยท about 18 minutes
Functions ๐งฉ
Functions ๐งฉ A function packages code you want to reuse. Define it once with def , call it as many times as you like. def greet(name): return f"Hello, {name}!" message = greet("Ada") print(message) Parameters and defaults def power(base, exponent=2): returnโฆ
The video for this lesson is out Tuesday 17 November at 6pm.
The video lesson is a free preview.
This lesson is part of Pythonaut Pro. The first two lessons are free, so you can start there and see how it works.