9. Advanced Function Techniques

The concept of functions is fundamental and was first introduced in Chapter 3, “Your First Programs.” But Python provides a number of advanced features used with functions. They make for simpler, easier, and more efficient programs.

By the end of this chapter, we’ll have explored how to use Python to play one of the most popular casino games in the world (without taking your money, however).

This chapter includes the following functional features:

Image Multiple arguments

Image Named arguments

Default arguments

Imported functions ...

Get Python Without Fear now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.