Integer literals are whole number without any fractional part.
The method of writing integer constants has been specified in following rule.
1. An integer constant must have at least one digit .
2. Must not contain any decimal point.
3. It may contain either (+) or (-) sign.
4. Commas cannot appear in any constant.
Note: A number with no sign is assumed to be Positive.
type() function gives the data type of particular element.
To covert any other data type value such as String(especially numeric values) or float, we use int() function.
Examples: