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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.