This lab had two parts, the first part required us to define a function check_fermat that takes the parameters of a,b,c and d. Fermat’s Last Theorem states that no three positive integers can satisfy the equation a**n+b**n=c**n.
The screenshots above show the codes written for the second part of the lab. The parameters a,b,c, and n were given the prompts to input values for a,b,c, and n.