Fermat’s Last Theorem

In this assignment, it required us to complete an equation which would be computed by python after asking the user of 3 different numbers to be substituted into the equation a^n + b^n = c^n. in order to complete this assignment, it required 3 separate functions in which the 2nd function would call the first. However, the 3rd function would then be used to actually correct the equation with the right numbers. Thus. the code below would simplify the equation using Python. The hardest part of this assignment would be the actual written part of the function, mainly the code inside the brackets. Since there are many ways to finish this assignment, I found the most efficient and less complex way to do so below.