# Activity #10

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

- Write a fruitful function
`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 `True`

if
the triangle is right-angled, or `False `

otherwise.

- Write a function
` isLeapYear`

`(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 `True`

if
the year is a leap year, `False`

otherwise.

When you are done you should submit your code under PARTNER A's account:

https://www.cs.uni.edu/~schafer/submit/which_course.cgi