Lesson Progress

0% Complete

```
# initialize some numeric value - can change values here
numric_value = 42.8
# using conditional statement if..to check even/odd
if numric_value % 2 == 0:
# performing modular division and checking remainder
print('number is even')
elif numric_value % 2 == 1:
# remainder is one...odd number
print('number is odd')
else:
# some one can put decimal data..for fun!!!
print('wrong data entered')
# when remainder is zero, it means number is EVEN, else number is ODD
```