Python Arrays Dictionaries
Mon 30 June 2025
# Cell 1 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr)
[1, 2, 3, 4, 5]
# Cell 2 - Python Arrays
arr = list(range(10))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
# Cell 3 - Python Arrays
arr = list(range(15))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
# Cell 4 - Python Arrays
arr = list(range(20))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
# Cell 5 - Python Arrays
arr = list(range(25))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
# Cell 6 - Python Arrays
arr = list(range(30))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
# Cell 7 - Python Arrays
arr = list(range(35))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34]
# Cell 8 - Python Arrays
arr = list(range(40))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
# Cell 9 - Python Arrays
arr = list(range(45))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]
# Cell 10 - Python Arrays
arr = list(range(50))
print(arr)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]
# Cell 11 - Python Arrays
arr = [x**2 for x in range(11)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
# Cell 12 - Python Arrays
arr = [x**2 for x in range(12)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121]
# Cell 13 - Python Arrays
arr = [x**2 for x in range(13)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144]
# Cell 14 - Python Arrays
arr = [x**2 for x in range(14)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169]
# Cell 15 - Python Arrays
arr = [x**2 for x in range(15)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196]
# Cell 16 - Python Arrays
arr = [x**2 for x in range(16)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225]
# Cell 17 - Python Arrays
arr = [x**2 for x in range(17)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256]
# Cell 18 - Python Arrays
arr = [x**2 for x in range(18)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289]
# Cell 19 - Python Arrays
arr = [x**2 for x in range(19)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324]
# Cell 20 - Python Arrays
arr = [x**2 for x in range(20)]
print(arr)
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361]
# Cell 21 - Python Arrays
arr = [x for x in range(21) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
# Cell 22 - Python Arrays
arr = [x for x in range(22) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
# Cell 23 - Python Arrays
arr = [x for x in range(23) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]
# Cell 24 - Python Arrays
arr = [x for x in range(24) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22]
# Cell 25 - Python Arrays
arr = [x for x in range(25) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24]
# Cell 26 - Python Arrays
arr = [x for x in range(26) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24]
# Cell 27 - Python Arrays
arr = [x for x in range(27) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26]
# Cell 28 - Python Arrays
arr = [x for x in range(28) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26]
# Cell 29 - Python Arrays
arr = [x for x in range(29) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28]
# Cell 30 - Python Arrays
arr = [x for x in range(30) if x % 2 == 0]
print(arr)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28]
# Cell 31 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 32 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 33 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 34 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 35 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 36 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 37 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 38 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 39 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 40 - Python Arrays
arr = ['a', 'b', 'c', 'd']
print(arr[0])
print(arr[-1])
a
d
# Cell 41 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 42 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 43 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 44 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 45 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 46 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 47 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 48 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 49 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 50 - Python Arrays
arr = [1, 2, 3, 4, 5]
arr.append(6)
print(arr)
[1, 2, 3, 4, 5, 6]
# Cell 51 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 52 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 53 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 54 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 55 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 56 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 57 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 58 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 59 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 60 - Python Arrays
arr = [10, 20, 30, 40]
arr.pop()
print(arr)
[10, 20, 30]
# Cell 61 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 62 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 63 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 64 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 65 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 66 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 67 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 68 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 69 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 70 - Python Arrays
arr = [1, 2, 3]
arr.insert(1, 100)
print(arr)
[1, 100, 2, 3]
# Cell 71 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 72 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 73 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 74 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 75 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 76 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 77 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 78 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 79 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 80 - Python Arrays
arr = [1, 2, 3, 4, 5]
print(arr[1:4])
[2, 3, 4]
# Cell 81 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 82 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 83 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 84 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 85 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 86 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 87 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 88 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 89 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 90 - Python Arrays
arr = [1, [2, 3], [4, 5]]
print(arr[1][1])
3
# Cell 91 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 92 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 93 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 94 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 95 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 96 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 97 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 98 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 99 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 100 - Python Arrays
arr = [x for x in range(10)]
print(sum(arr))
45
# Cell 101 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 102 - Python Dictionaries
d = {str(x): x**2 for x in range(2)}
print(d)
{'0': 0, '1': 1}
# Cell 103 - Python Dictionaries
d = {str(x): x**2 for x in range(3)}
print(d)
{'0': 0, '1': 1, '2': 4}
# Cell 104 - Python Dictionaries
d = {str(x): x**2 for x in range(4)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9}
# Cell 105 - Python Dictionaries
d = {str(x): x**2 for x in range(5)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9, '4': 16}
# Cell 106 - Python Dictionaries
d = {str(x): x**2 for x in range(6)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9, '4': 16, '5': 25}
# Cell 107 - Python Dictionaries
d = {str(x): x**2 for x in range(7)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9, '4': 16, '5': 25, '6': 36}
# Cell 108 - Python Dictionaries
d = {str(x): x**2 for x in range(8)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9, '4': 16, '5': 25, '6': 36, '7': 49}
# Cell 109 - Python Dictionaries
d = {str(x): x**2 for x in range(9)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9, '4': 16, '5': 25, '6': 36, '7': 49, '8': 64}
# Cell 110 - Python Dictionaries
d = {str(x): x**2 for x in range(10)}
print(d)
{'0': 0, '1': 1, '2': 4, '3': 9, '4': 16, '5': 25, '6': 36, '7': 49, '8': 64, '9': 81}
# Cell 111 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 112 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 113 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 114 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 115 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 116 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 117 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 118 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 119 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 120 - Python Dictionaries
d = {'name': 'Alice', 'age': 25}
print(d['name'])
Alice
# Cell 121 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 122 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 123 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 124 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 125 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 126 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 127 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 128 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 129 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 130 - Python Dictionaries
d = {'a': 1, 'b': 2}
d['c'] = 3
print(d)
{'a': 1, 'b': 2, 'c': 3}
# Cell 131 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 132 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 133 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 134 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 135 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 136 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 137 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 138 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 139 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 140 - Python Dictionaries
d = {'a': 1, 'b': 2, 'c': 3}
d.pop('b')
print(d)
{'a': 1, 'c': 3}
# Cell 141 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 142 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 143 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 144 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 145 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 146 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 147 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 148 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 149 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 150 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.keys()))
['x', 'y']
# Cell 151 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 152 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 153 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 154 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 155 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 156 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 157 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 158 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 159 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 160 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.values()))
[10, 20]
# Cell 161 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 162 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 163 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 164 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 165 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 166 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 167 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 168 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 169 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 170 - Python Dictionaries
d = {'x': 10, 'y': 20}
print(list(d.items()))
[('x', 10), ('y', 20)]
# Cell 171 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 172 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 173 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 174 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 175 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 176 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 177 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 178 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 179 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 180 - Python Dictionaries
d1 = {'a': 1}
d2 = {'b': 2}
d1.update(d2)
print(d1)
{'a': 1, 'b': 2}
# Cell 181 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 182 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 183 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 184 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 185 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 186 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 187 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 188 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 189 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 190 - Python Dictionaries
d = {'a': {'x': 10, 'y': 20}, 'b': 2}
print(d['a']['y'])
20
# Cell 191 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 192 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 193 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 194 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 195 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 196 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 197 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 198 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 199 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
# Cell 200 - Python Dictionaries
d = {'apple': 3, 'banana': 2}
print(sum(d.values()))
5
Score: 210
Category: basics