Well here first I defined a function called inverter which takes a number as input and inverts
or upsets it, gives it as output.
Now why did I do this because symmetric is numbers that revresof it is equal to itself
Now we check all the numbers inside the loop to see if the number is symmetric, can it be the
product of two to three digits?
For this reason, we first divide the number by a three-digit number to find the divisor against
the first, then look for another 3-digit number to be equal to the original number by
multiplying by the first divisor.
خب در اینجا ابتدا من یک تابع تعریف کردم به نام برعکس کننده که با گرفتن یک عدد به عنوان ورودی و
برعکس کردن یا سر و ته کردن اون، اون را به عنوان خروجی میدهد حالا چرا اینکار را کردم چون اعدادی
متقارن هست که خودش با برعکسش یکی باشه
حالا در داخل حلقه تمام اعداد را چک میکنیم تا اگر عدد متقارن بود ببینیم ایا حاصل ضرب دو تا عدد سه
رقمی میتونه باشه
برای همین ابتدا عدد را بر یک عدد سه رقمی تقسیم میکنیم تا مقسوم علیه اول را پیدا کنیم سپس دنبال
عدد 3 رقمی دیگری میگردیم تا با ضرب شدن در مقسوم الیه اول برابر عدد اصلی شود.