Tuesday, 2 July 2019

Literal


Literal:

A Literal is a constant value that is stored into the variable (obj reference) is called literal.


Ex:
a=10
Here 'a' is the variable into which the constant value '10 is stored. so 10 is called literal.
Here 10 is the data when it is stored into the variable, stored data is called Literal, Literal means constant value.

We have integer literal, float literal, String literal

No comments:

Post a Comment

Files with Exception handling

#Ask the user to take two input integer values var a,b try:     a=int(input("enter any integer value:"))     b=int(input(&qu...