input: from typing import List
  
  def generate_password(number_of_characters: int = 8) -> str:
      """Generate a random password consisting of the specified number of characters.
      The password will include both uppercase and lowercase letters, as well as digits.
      >>> generate_password()
      'aB3dE7gH' 
      >>> generate_password(12)
      '1mNjX2KqLzZp'
      """
      chars = string.ascii_letters + string.digits
      return ''.join(random.choice(chars) for _ in range(number_of_characters))
output:     import string
      import random