adapter pattern it is not the strongest of the species that survivesnor the most intelligent it is the one that is most adaptable to change --charles darwin sometimes you do not have the interface you would like to connect to there could be many reasons for thisbut in this we will concern ourselves with what we can do to change what we are given into something that is closer to what we would like to have let' say you want to build your own marketing software you begin by writing some code to send emails in the larger systemyou might make call like thissend_email py import smtplib from email mime text import mimetext def send_email(senderrecipientssubjectmessage)msg mimetext(messagemsg['subject'subject msg['from'sender msg['to'",join(recipientsmail_sender smtplib smtp('localhost'mail_sender send_message(msgmail_sender quit(if __name__ ="__main__"response send_email'me@example com'["peter@example com""paul@example com""john@example com"]"this is your message""have good day(cwessel badenhorst badenhorstpractical python design patterns