input:     
                          import random
                          import string
  
                          def generate_password():
                            password_characters = string.ascii_letters + string.digits + string.punctuation
                            password = ''.join(random.choice(password_characters) for i in range(8))
                            print(password)
  
                          > generate_password()
                          'a1B!c2D@'
                          
output:     return password