What do you mean by literals in Python?



Suraj Said

+0 -0

i) Literals are values in programming languages that are written exactly as they are to be used.
ii) Examples of literals in Python include strings (e.g. "hello"), numbers (e.g. 42), and booleans (e.g. True).
iii)Literals are a direct representation of values in a program and can be assigned to variables for use within the program.



Submit Your Response