Check if a number is even or odd #
Write a function that takes an integer as an argument and prints out a message whether it is even or odd.
Tests #
is_even_or_odd(0)should print out the message"Number 0 is even"is_even_or_odd(5)should print out the message"Number 5 is odd"is_even_or_odd(10)should print out the message"Number 10 is even"is_even_or_odd(999)should print out the message"Number 0 is odd"
Getting Started with Python
Data Types
Python Functions
Statements in Python
Basic Debugging in Python
Basic Algorithm
Object-Oriented Programming
Error Handling
Intermediate Algorithm
Python Modules