Assignment 5 : Fermat’s Last Theorem

Description

Write a code that checks Fermat’s Last Theorem (no three positive integers can satisfy the equation a^n+b^= c^n for any integer value of n greater than 2). Have the user input the values for a, b, c, and n. Make sure the values are converted to integers.

My Experience

The hardest part of the exercise was trying to figure out how to convert the user input values into integers. I tried using int(input but that wouldn’t let me input any float numbers. Then I tried using float(input( but that wouldn’t guarantee that the user would enter an integer, or that the float they entered would become an integer value. So then I tried using int(float(input( and it worked.

Gallery of Screenshots