From 95ea94bfc3749060ca4fb71770e9376728c0fcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 20 Mar 2019 20:15:03 +0100 Subject: [PATCH] List --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 46ecd60..14dbf94 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ List ``` ```python -.append() # Or: += [] -.extend() # Or: += +.append() # Or: += [] +.extend() # Or: += ``` ```python @@ -43,11 +43,11 @@ list_of_chars = list() ``` ```python -index = .index() # Returns first index of item. -.insert(index, ) # Inserts item at index and moves the rest to the right. - = .pop([index]) # Removes and returns item at index or from the end. -.remove() # Removes first occurrence of item or raises ValueError. -.clear() # Removes all items. +index = .index() # Returns first index of item. +.insert(index, ) # Inserts item at index and moves the rest to the right. + = .pop([index]) # Removes and returns item at index or from the end. +.remove() # Removes first occurrence of item or raises ValueError. +.clear() # Removes all items. ```