Is it possible to code a program that can find the solutions without using functions? I\'m not that familiar with it. The following is my attempt in Python 3.9: