Skip to content

Commit 5e18d2c

Browse files
committed
Tiny format fix
1 parent 5bd4866 commit 5e18d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04 More on Variables/2 Lists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ list = ['A', 'B', 'C', 'D']
2929

3030
del list[1] # delete the second element
3131

32-
print (list) # ['A', 'C', 'D']
32+
print(list) # ['A', 'C', 'D']
3333
```
3434

3535
It is also possible to insert and add items to the list. They are used to this method with names `insert` and `append`. These methods are specific operations related to a variable of a given type. They are similar to a function, but affect only one specific object. They are called as follows `object.method(arguments...)`, where object is usually a variable name, and the method name is separated from the object by a period. Adding an item to the list will look like this:

0 commit comments

Comments
 (0)