i want generate password including lower case and upper case and numbers using python but it should guarantee that all these 3 kinds has been used. so far i wrote this but it does not guarantee that all 3 kinds of characters are being used. i want divide the 8 character to 2 part. first 3 and last 5. then make sure in the firs part all 3 kinds of character are being used then shuffle them with the next part but i dont know how to code that.

```
import random
a = 0
password = ''
while a < 8:
    if random.randint(0, 61) < 10:
        password += chr(random.randint(48, 57))
    elif 10<random.randint(0, 61)<36:
        password += chr(random.randint(65, 90))
    else:
        password += chr(random.randint(97, 122))
    a += 1
print(password)

```