The first step in Primes.py
is to implement the isEven
function that you already defined interactively.
You will see the following code in the Primes.py file:
def isEven(n):
"""
Function that will "return True" if n is even, False otherwise.
Uses the modulo operator, which returns the remainder of the
division of n by m: e.g., n%m is 0 if n is divisible by m.
"""
pass
The word pass is a Python keyword that does nothing. It is
included here since every function in Python needs a valid body, even
if that body does nothing (pass). Even before redefining
the function body, you can ask for help about the isEven function
(via help(isEven)). You will see the documentation string
(docstring) echoed in the ipython window. A good thing to keep in mind is
that if you want your function to return a value, you must use the return
command.