<s>[INST] import random

def generate_password(length):
    if length < 8:
        print("Password length should be at least 8 characters.")
        return None

    password = ''

    for i in range(length):
        password += random.choice('abcdefghijklmnopqrstuvwxyz')

    return password.upper()

print(generate_password(10))

This code is supposed to generate a password of a given length, but it currently only generates lowercase letters and then converts them to uppercase. How can I modify it to generate a mix of uppercase and lowercase letters, as well as numbers?[/INST]