import random
def passwords():
a, b, c = ord('a'), ord('A'), ord('1')
r = list(range(a , a +26)) + list(range(b , b +26)) +list(range(c, c + 9))
choices = [chr(i) for i in r]
return [''.join(random.sample(choices, 8)) for i in range(10)]
print(passwords())