Get answer of your all questions and doubts! ➤

Question
What are integer literals?

[Computer Science Class – 11 Sumita Arora solutions. Chapter 6 – Python Fundamentals.]

Answer

Integer literals are whole numbers without any fractional part. The method of writing integer constants has been specified in the following rule:-
An integer constant must have at least one digit and must not contain any decimal point. It may contain either (+) or (-) sign. A number with no sign is assumed to be positive. Commas cannot appear in an integer constant.

Leave a Comment

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