Question: Create a function that determines whether a given integer is an even or odd number. Your function, is _ even _ or _ odd, should

Create a function that determines whether a given integer is an even or odd number. Your function, is_even_or_odd, should take an integer as input and return a result indicating whether the number is even or odd.
Requirements:
Create a function called is_even_or_odd that takes an integer number as its parameter.
Inside the function, use conditional statements to check if the input number is even or odd.
Return the result is "Even" if the number is even and "Odd" if the number is odd.
Implement example usages of the function with different integers and print the results.
Example Output:
"Your number is Odd"
"Your number is Even"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!