dot notation

Writing object.name to reach a method or attribute that belongs to an object or module, as in s.upper() or math.pi.

In more detail

The dot binds more tightly than any operator, so -x.count("a") negates the count. The same notation reaches into modules, classes and instances.

Related terms

Taught in

References