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

Leave a Comment

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