Skip to content

Glossary: Python Basics

Method

Also written: methods

A function that belongs to a value, called with a dot, such as `name.upper()`. String methods return a new string rather than changing the original.

Where the book teaches it