Write a function that can accept an integer number as input from the user and print "It is an even number" if the number is even, otherwise print "It is an odd number". Hints: Use the % operator to check if a number is even or odd.
Added by Paul W.
Step 1
### Show more…
Show all steps
Your feedback will help us improve your experience
Syed Vasi and 51 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a python program to accept 1 number as input from user if number is positive, Display even number from 10 to 2 Otherwise, Display odd numbers from 11 to 1
Vandit T.
Write a program in Python to calculate and display the sum of all odd numbers in the list
Shelayah R.
Write a Python Program for finding even odd number?
Chandra J.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD