0

I've heard the word "Literal" many times in Python
But I don't understand it !
what does this mean ?
Thanks ! :rolleyes:

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by vegaseat
0

The word "literal" appears often with hexadecimal or octal numbers, they are literal representations of a number.

So hex(255) gives the string '0xff', the value 255 is still contained within that string. You can say that '0xff' is the hex literal of 255.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.