blob: 1356cd428087e76f80d8454ee06ffb7f630a1fc5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# basic dictionary
d = {}
print(d)
d[2] = 123
print(d)
d = {1:2}
d[3] = 3
print(d)
d[1] = 0
print(d)
print(d[1])
x = 1
while x < 1000:
d[x] = x
x += 1
print(d[500])
|