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
Press + to interact
number= 10 # Check if this number is odd or evenif (number%2) == 0:print("The number is even")else:print("The number is odd")
Explanation
- We have only two conditions as output,