input: Write a function to generate a random password given a set of letters, numbers, and characters. The function should return a string of 8 randomly selected characters from the provided set of characters.
  assert generate_password()=='a1B2c3D4'
  assert generate_password()=='5E6F7G8H'
  assert generate_password()=='I9J0K!L@'
  assert generate_password()=='M#N$O%P^'
  
  import random 
    
  # Function to generate a random password 
  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
output: import random 
    
  # Function to generate a random password 
  def generate_password():
      string = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
      password =  "".join(random.sample(string, 8)) 
      return password