Computer Science, asked by shashank7668, 10 months ago

How many ways are there in Python to represent an integer literal ?

Answers

Answered by Anonymous
90

Answer:

Python allows three types of integer literals : 1. Decimal (base 10) integer literals.

2. Octal (base 8) integer literals.

3. Hexadecimal (base 16) integer literals. For example, decimal 12 will be written as 14 as octal integer and as OXC as hexa decimal integer. (12)10 = (14)8 = (OXC)16. (as hexa decimal).

Answered by DeenaMathew
12

There are three in Python to represent an integer literal.

-Decimal (base 10) integer literals.

-Octal (base 8) integer literals.

-Hexadecimal (base 16) integer literals.

1.Python comes with some built-in objects which are used to make objects called literals. These literals include the string, unicode string, integer, float, long, list, and dictionary types.

Similar questions