Move tests in basic/tests/ up one level preparating to multiple test dirs.
This commit is contained in:
18
tests/basics/dict1.py
Normal file
18
tests/basics/dict1.py
Normal file
@@ -0,0 +1,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])
|
||||
Reference in New Issue
Block a user