Note: The codes below were not completely created by me. I had to do lots of research to copy, paste, and edit for clarity the codes below. The math codes were copied after I found them to work better than the others on the internet.

Or instead of using Python, you can just go to this website to get the answers to your GCF and LCD questions. I recommend this website due to the lack of advertisements.

https://www.calculators.org/math/least-common-multiple.php

Or if you decide to use Python, then highlight starting at print('') all the way to the end of this page. Then right-click on the mouse and click copy. Start Python Idle, click File, drop down to New File, and paste the codes. Next, click "Run," then "Run Module." Save it with any name you like.