Pure Programmer
Blue Matrix


Cluster Map

Project: Hexadecimal Literals

Write a program that prints each of the [[hexadecimal]] [[literals]] in the table below in a print statement to see if the decimal equivalents are correct.

Example Integer Literals
DecimalHexadecimal
00x0
80x8
150xf
3260x146
439810xabcd
4390411010x1a2b3c4d
-326-0x146

Output
$ python3 HexadecimalLiterals.py 0 8 15 326 43981 439041101 -326

Solution