...

/

Solution Review: Check if Even or Odd

Solution Review: Check if Even or Odd

This review provides a detailed explanation of the solution to the "Check if Even or Odd" challenge.

We'll cover the following...

Solution

Let’s understand the solution of the challenge in Powershell and Python.

Python

Python 3.5
number= 10 # Check if this number is odd or even
if (number%2) == 0:
print("The number is even")
else:
print("The number is odd")

Explanation

  • We have only two conditions as output,
...