FRUITFUL FUNCTION

This assignment used Fermat’s last theorem and Python codes to check if his theorem works. The assignment began with defining check_fermat with random numbers selected by a user. Next, I use the if and else statements to check if the numbers selected by the user worked with the theorem or not. The second part of the assignment was to use my own selection of numbers to test Fermat’s theorem, I used the integer input to put my own number when the program asked. I tested the theorem with different numbers until it came back that Fermat was right. This assignment was difficult towards the end because i could not get the right numbers to have the program result that Fermat’s theorem was right.