โ† All lessons

Lesson 38 of 62 ยท about 15 minutes

*args and **kwargs ๐ŸŽ›๏ธ

*args and **kwargs ๐ŸŽ›๏ธ Some functions need to accept any number of values. print() takes as many arguments as you like, and max(3, 9, 4) works with two values or twenty. You can build functions like that yourself with a star or two. *args: any number ofโ€ฆ

This lesson is part of Pythonaut Pro. The first two lessons are free, so you can start there and see how it works.

See the free lessons