def generate_unique_password(generated_passwords, password_length=12):
 password = generate_random_string(password_length)
 while (password in generated_passwords):
  password = generate_random_string(password_length)
 generated_passwords.append(password)
 return password

def generate_unique_password ( generated_passwords , password_length = 12 ) : password = generate_random_string ( password_length ) while ( password in generated_passwords ) : password = generate_random_string ( password_length ) generated_passwords . append ( password ) return password
generate a unique password for each student .