The following section contains programs on different types of mathematical functions. These include programs to checks whether the given number is positive , negative , even or odd. We also have programs to checks whether a given year is leap year or not. and many more.
Python program to check number is +ve or not.
Python program to check number is -ve or not.
Python program to check person can vote or not
Python program to check number is even or not
Python program to check number is odd or not
Python program to print larger of two numbers
Python program to print smaller of two numbers
Python program to check number is +ve , -ve or zero.
Python program to check number is even , odd or zero
Python program to print largest of three numbers
Python program to print smallest of three numbers
Python program to print sum of digits of a 2 digit number
Python program to print sum of digits of a 3 digit number
Python program to print sum of 1st and last digits of a 3 digit number
Python program to print sum of digits of a 4 digit number
Python program to print sum of 1st and last digits of a 4 digit number