GitHub

Original file line numberDiff line numberDiff line change

@@ -277,7 +277,7 @@ x

277277
278278

Here `append()` is what's called a *method*, which is a function "attached to" an object---in this case, the list `x`.

279279
280-

We'll learn all about methods {doc}`later on <oop_intro>`, but just to give you some idea,

280+

We'll learn all about methods {doc}`later on <oop_intro>`, but just to give you some idea,

281281
282282

* Python objects such as lists, strings, etc. all have methods that are used to manipulate the data contained in the object.

283283

* String objects have [string methods](https://docs.python.org/3/library/stdtypes.html#string-methods), list objects have [list methods](https://docs.python.org/3/tutorial/datastructures.html#more-on-lists), etc.

Read the original on github.com ↗