I am using Python as my coding language, and am needing to solve this problem. How can I do this? I am writing code in Notepad and implementing it in Anaconda: