Fixed grammar on lines 7, 9 and 11 (#31795)
This commit is contained in:
committed by
The Coding Aviator
parent
038e096e59
commit
fd9e450ae6
@ -6,14 +6,14 @@ title: List Append Method
|
|||||||
There are many methods for lists, you can explore all of them by typing `help(list)` in your python console.
|
There are many methods for lists, you can explore all of them by typing `help(list)` in your python console.
|
||||||
One of them is the `append()` function which, as the name says, appends/adds the argument to the end of the given list.
|
One of them is the `append()` function which, as the name says, appends/adds the argument to the end of the given list.
|
||||||
|
|
||||||
#### Example Usage
|
#### Example Usage:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
words = ["I", "love", "Python"]
|
words = ["I", "love", "Python"]
|
||||||
words.append("very much")
|
words.append("very much")
|
||||||
print(words)
|
print(words)
|
||||||
```
|
```
|
||||||
#### Output
|
#### Output:
|
||||||
```
|
```
|
||||||
['I', 'love', 'Python', 'very much']
|
['I', 'love', 'Python', 'very much']
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user