This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from timeit import timeit | |
from random import choice, randint | |
from string import ascii_letters | |
# random_keys = [''.join([choice(ascii_letters) for i in range(randint(4,30))]) for i in range(10000)] | |
def add2dict(random_keys): | |
s = {} | |
for key in random_keys: | |
s[key] = 1 |