From 1fa6b24d54f771bafb67fcd837e8d8c20b7bc23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 25 Jul 2019 18:59:44 +0200 Subject: [PATCH] List --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 936e67c..ba3f586 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ index = .index() # Returns index of first occurrence or raises Val .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. Also works on dict and set. +.clear() # Removes all items. Also works on dictionary and set. ``` diff --git a/index.html b/index.html index 9044f79..85e9a9a 100644 --- a/index.html +++ b/index.html @@ -253,7 +253,7 @@ list_of_chars = list(<str>) <list>.insert(index, <el>) # Inserts item at index and moves the rest to the right. <el> = <list>.pop([index]) # Removes and returns item at index or from the end. <list>.remove(<el>) # Removes first occurrence of item or raises ValueError. -<list>.clear() # Removes all items. Also works on dict and set. +<list>.clear() # Removes all items. Also works on dictionary and set.

#Dictionary

<view> = <dict>.keys()                          # Coll. of keys that reflects changes.
 <view> = <dict>.values()                        # Coll. of values that reflects changes.