input: Write a function to generate a random password using a given set of letters, numbers, and characters. The function should return a password of length 8.
  import random 
    
    
  # 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)) 
  print(password)
  assert generate_password()=="aB34&*78"
  assert generate_password()=="xY29!@12"
  assert generate_password()=="zZ56%^34"
  assert generate_password()=="qW12()67"
  assert generate_password()=="mN43#$89"
output: def generate_password():
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      return "".join(random.sample(string, 8))