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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.