Skip to content

Glossary: Python Basics

Default value

Also written: default

A value given to a parameter in the `def` line with `=`, used when the caller leaves that argument out. In `price_with_tax(price, rate=0.2)`, 0.2 is the default rate.

Where the book teaches it