input: Write a function to generate a random password given a set of letters, numbers, and characters. The function should return the generated password.
  import random
  
  def generate_password():
      # All the possible characters that could go into the password
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      
      # Using the choice function of the random module choose any character randomly from the set of characters
      password = "".join(random.sample(string, 8))
      return password
  
  assert generate_password() is not None
  assert len(generate_password()) == 8
output: import random
  
  def generate_password():
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password = "".join(random.sample(string, 8))
      return password