This is a debugging exercise.
So this is code that you wrote ages ago where
you created a program that tests whether
if an input is an odd or an even number.
Now, however I've put some bugs in there.
So I've been sneaky, and I have messed
up the code a little bit and this happens a lot to us
programmers, sometimes we do it unintentionally.
Sometimes somebody else messes with our code or sometimes
we've just written something that's completely nonsensical
and it doesn't do what we want it to do.
This is a really important skill.
This along with being good at Googling is probably one
of the most important skills for a professional developer.
Don't feel bad just
because you know the code is wrong and you have to fix it.
This is something that I expect all developers
to get good at.
Take a look at the code.
You know what it has to do.
It has to take any given input
and tell you if it's even number or an odd number.
Identify and fix mistakes in it
and then feel free to hit Submit to see
if your code passes all the checks.
I strongly encourage you to not look
at your previous solution for odd or even
and to figure it out from first principles.
Have a go now.
The solution is pretty quick and simple
but finding it is not quick and simple.
Hopefully, you managed to figure out
that the bug here is where we've got
if number % 2 == 0,
a single equal (=) in Python is an assignment,
it's saying let's put the right side
of the equal sign into the container that's on the left,
whereas, two equal signs (==) is checking for equality.
So is the left hand side equal
in value to the right hand side?
And that's what we need to do when we want to check
if a number is odd or even.