diff --git a/README.md b/README.md index 9146592..4a05bef 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,12 @@ Dictionary .update() ``` +```python +>>> a = [(1, 4), (3, 50)] +>>> dict(a) +{1: 4, 3: 50} +``` + ```python collections.defaultdict() # Creates a dictionary with default values. dict(zip(keys, values)) # Initiates a dict from two lists. @@ -59,6 +65,8 @@ Set .union() .intersection() .difference() +.issubset() +..issuperset() ``` ### Frozenset @@ -223,6 +231,7 @@ import random random.random() random.randint(from_inclusive, to_inclusive) random.shuffle() +random.choice() ``` Infinity