Python | Simple Odd and Even number


Simple Odd and Even number using Python
If you divide a number by 2 and it gives a 
remainder of 0 then it is known as even number,
 otherwise an odd number.
Example
below number2 some number is assigned using if 
condition we can find odd and even number form
that ..
 
Example 
 
number2=[1,2,3,4,5,6,8,9]
if number2%2==0:
print("even number are :",number2)
else:
print("odd number are :",number2)

Python | Simple Odd and Even number

Have any Question or Comment?

2 comments on “Python | Simple Odd and Even number

Leave a Reply

Your email address will not be published. Required fields are marked *

Domain & free Hosting

Categories

You have successfully subscribed to myprogrammingschool

There was an error while trying to send your request. Please try again.

My Programming School will use the information you provide on this form to be in touch with you and to provide updates and marketing.