Modernize code to Python 3.6+ and some cleanup
This commit is contained in:
@@ -7,6 +7,6 @@ random.seed(1729)
|
||||
|
||||
my_list = []
|
||||
for i in range(SIZE):
|
||||
new_item = random.randrange(SIZE*2)
|
||||
new_item = random.randrange(SIZE * 2)
|
||||
bisect.insort(my_list, new_item)
|
||||
print('%2d ->' % new_item, my_list)
|
||||
print(f'{new_item:2} ->', my_list)
|
||||
|
||||
Reference in New Issue
Block a user