import random
chars = "1234567890qwertyuiopasdfghjklzxcvbnm"
password = random.choice(chars) + random.choice(chars) + random.choice(chars) + random.choice(chars) +random.choice(chars) + random.choice(chars) +random.choice(chars)
print (password)
...
https://www.youtube.com/watch?v=6v3VOFRWmYg