Python: Fruitful Functions

In this assignment we learned how to write a code to print certain things if a value is less than or greater than we would have different outputs. If it’s the output is less than two the output would be “Yes, that works.”. If the out put is greater than, it would print “No, that doesn’t work.”. The code we use to determine this was “a**n + b**n == c**n”. At first we put values in the code ourselves then we made the code ask the user to input a value. Also we made the code to only print out integers by using “int”.

Fruitful functions code Fruitful functions results