Develop a Python program to generate random passwords that consist of 8 characters.
Not applicable
import string
import random

def generate_password():
    chars = string.ascii_letters + string.digits
    return ''.join(random.choice(chars) for _ in range(8))

password = generate_password()
print(password)