1:  i create the function check_fermat to create an equation that represents fermat theorem.

2: In the second script one function calles another so any user can input their values in fermat theorem.

fermat-input fermat