Today I want you and your partner to write two Boolean functions. Boolean functions are ones that return either True of False to answer a "question."
An example of this would be the following fucntion that determines if a number is even.
At the command line we would test it with:
Write each of these functions in a single file named s31.py
isRightangled(a,b,c)which, takes in the length of three sides of a triangle, and will determine whether the triangle contains a right-angle. [Remember that a triangle that contains a right angle will satisfy Pythagorean's Theorem] You may assume that the third argument to the function is always the longest side. The function will return
Trueif the triangle is right-angled, or
(year)A year is a leap year if it is divisible by 4 unless it is a century that is not divisible by 400. Write a function that takes a year as a parameter and returns
Trueif the year is a leap year,
When you are done you should submit your code under PARTNER A's account: