Dump ASCII table in Python

Python script to dump the ASCII table:

#!/usr/bin/env python3

print("|{:^9}|{:^10}|{:^10}|".format("ASCII", "Decimal", "Hex"))
for c in range(256):
    print("|{:^10}|{:^10}|{:^10}|".format(str(chr(c)), c, hex(c)))

Output:

|  ASCII  | Decimal  |   Hex    |
|         |    0     |   0x0    |
|         |    1     |   0x1    |
|         |    2     |   0x2    |
|         |    3     |   0x3    |
|         |    4     |   0x4    |
|         |    5     |   0x5    |
|         |    6     |   0x6    |
|         |    7     |   0x7    |
|         |    8     |   0x8    |
|    	    |    9     |   0x9    |
|         |    10    |   0xa    |
|         |    11    |   0xb    |
|         |    12    |   0xc    |
|         |    13    |   0xd    |
|         |    14    |   0│␊    |
|         |    15    |   0xf    |
|         |    16    |   0x10   |
|         |    17    |   0x11   |
|         |    18    |   0x12   |
|         |    19    |   0x13   |
|         |    20    |   0x14   |
|         |    21    |   0x15   |
|         |    22    |   0x16   |
|         |    23    |   0x17   |
|         |    24    |   0x18   |
|         |    25    |   0x19   |
|         |    26    |   0x1a   |
|         |    27    |   0x1b   |
|         |    28    |   0x1c   |
|         |    29    |   0x1d   |
|         |    30    |   0x1e   |
|         |    31    |   0x1f   |
|          |    32    |   0x20   |
|    !     |    33    |   0x21   |
|    "     |    34    |   0x22   |
|    #     |    35    |   0x23   |
|    $     |    36    |   0x24   |
|    %     |    37    |   0x25   |
|    &     |    38    |   0x26   |
|    '     |    39    |   0x27   |
|    (     |    40    |   0x28   |
|    )     |    41    |   0x29   |
|    *     |    42    |   0x2a   |
|    +     |    43    |   0x2b   |
|    ,     |    44    |   0x2c   |
|    -     |    45    |   0x2d   |
|    .     |    46    |   0x2e   |
|    /     |    47    |   0x2f   |
|    0     |    48    |   0x30   |
|    1     |    49    |   0x31   |
|    2     |    50    |   0x32   |
|    3     |    51    |   0x33   |
|    4     |    52    |   0x34   |
|    5     |    53    |   0x35   |
|    6     |    54    |   0x36   |
|    7     |    55    |   0x37   |
|    8     |    56    |   0x38   |
|    9     |    57    |   0x39   |
|    :     |    58    |   0x3a   |
|    ;     |    59    |   0x3b   |
|    <     |    60    |   0x3c   |
|    =     |    61    |   0x3d   |
|    >     |    62    |   0x3e   |
|    ?     |    63    |   0x3f   |
|    @     |    64    |   0x40   |
|    A     |    65    |   0x41   |
|    B     |    66    |   0x42   |
|    C     |    67    |   0x43   |
|    D     |    68    |   0x44   |
|    E     |    69    |   0x45   |
|    F     |    70    |   0x46   |
|    G     |    71    |   0x47   |
|    H     |    72    |   0x48   |
|    I     |    73    |   0x49   |
|    J     |    74    |   0x4a   |
|    K     |    75    |   0x4b   |
|    L     |    76    |   0x4c   |
|    M     |    77    |   0x4d   |
|    N     |    78    |   0x4e   |
|    O     |    79    |   0x4f   |
|    P     |    80    |   0x50   |
|    Q     |    81    |   0x51   |
|    R     |    82    |   0x52   |
|    S     |    83    |   0x53   |
|    T     |    84    |   0x54   |
|    U     |    85    |   0x55   |
|    V     |    86    |   0x56   |
|    W     |    87    |   0x57   |
|    X     |    88    |   0x58   |
|    Y     |    89    |   0x59   |
|    Z     |    90    |   0x5a   |
|    [     |    91    |   0x5b   |
|    \     |    92    |   0x5c   |
|    ]     |    93    |   0x5d   |
|    ^     |    94    |   0x5e   |
|    _     |    95    |   0x5f   |
|    `     |    96    |   0x60   |
|    a     |    97    |   0x61   |
|    b     |    98    |   0x62   |
|    c     |    99    |   0x63   |
|    d     |   100    |   0x64   |
|    e     |   101    |   0x65   |
|    f     |   102    |   0x66   |
|    g     |   103    |   0x67   |
|    h     |   104    |   0x68   |
|    i     |   105    |   0x69   |
|    j     |   106    |   0x6a   |
|    k     |   107    |   0x6b   |
|    l     |   108    |   0x6c   |
|    m     |   109    |   0x6d   |
|    n     |   110    |   0x6e   |
|    o     |   111    |   0x6f   |
|    p     |   112    |   0x70   |
|    q     |   113    |   0x71   |
|    r     |   114    |   0x72   |
|    s     |   115    |   0x73   |
|    t     |   116    |   0x74   |
|    u     |   117    |   0x75   |
|    v     |   118    |   0x76   |
|    w     |   119    |   0x77   |
|    x     |   120    |   0x78   |
|    y     |   121    |   0x79   |
|    z     |   122    |   0x7a   |
|    {     |   123    |   0x7b   |
|    |     |   124    |   0x7c   |
|    }     |   125    |   0x7d   |
|    ~     |   126    |   0x7e   |
|          |   127    |   0x7f   |
|    €     |   128    |   0x80   |
|         |   129    |   0x81   |
|    ‚     |   130    |   0x82   |
|    ƒ     |   131    |   0x83   |
|    „     |   132    |   0x84   |
|    …     |   133    |   0x85   |
|    †    |   134    |   0x86   |
|    ‡    |   135    |   0x87   |
|    ˆ    |   136    |   0x88   |
|    ‰    |   137    |   0x89   |
|    Š    |   138    |   0x8a   |
|          |   139    |   0x8b   |
|   Œ     |   140    |   0x8c   |
|        |   141    |   0x8d   |
|    Ž    |   142    |   0x8e   |
|        |   143    |   0x8f   |
|        |   144    |   0x90   |
|    ‘    |   145    |   0x91   |
|    ’    |   146    |   0x92   |
|    “    |   147    |   0x93   |
|    ”    |   148    |   0x94   |
|    •    |   149    |   0x95   |
|    –    |   150    |   0x96   |
|    —    |   151    |   0x97   |
|    ˜    |   152    |   0x98   |
|    ™    |   153    |   0x99   |
|    š    |   154    |   0x9a   |
|    ›    |   155    |   0x9b   |
|    œ    |   156    |   0x9c   |
|        |   157    |   0x9d   |
|    ž    |   158    |   0x9e   |
|    Ÿ    |   159    |   0x9f   |
|          |   160    |   0xa0   |
|    ¡     |   161    |   0xa1   |
|    ¢     |   162    |   0xa2   |
|    £     |   163    |   0xa3   |
|    ¤     |   164    |   0xa4   |
|    ¥     |   165    |   0xa5   |
|    ¦     |   166    |   0xa6   |
|    §     |   167    |   0xa7   |
|    ¨     |   168    |   0xa8   |
|    ©     |   169    |   0xa9   |
|    ª     |   170    |   0xaa   |
|    «     |   171    |   0xab   |
|    ¬     |   172    |   0xac   |
|    ­      |   173    |   0xad   |
|    ®     |   174    |   0xae   |
|    ¯     |   175    |   0xaf   |
|    °     |   176    |   0xb0   |
|    ±     |   177    |   0xb1   |
|    ²     |   178    |   0xb2   |
|    ³     |   179    |   0xb3   |
|    ´     |   180    |   0xb4   |
|    µ     |   181    |   0xb5   |
|    ¶     |   182    |   0xb6   |
|    ·     |   183    |   0xb7   |
|    ¸     |   184    |   0xb8   |
|    ¹     |   185    |   0xb9   |
|    º     |   186    |   0xba   |
|    »     |   187    |   0xbb   |
|    ¼     |   188    |   0xbc   |
|    ½     |   189    |   0xbd   |
|    ¾     |   190    |   0xbe   |
|    ¿     |   191    |   0xbf   |
|    À     |   192    |   0xc0   |
|    Á     |   193    |   0xc1   |
|    Â     |   194    |   0xc2   |
|    Ã     |   195    |   0xc3   |
|    Ä     |   196    |   0xc4   |
|    Å     |   197    |   0xc5   |
|    Æ     |   198    |   0xc6   |
|    Ç     |   199    |   0xc7   |
|    È     |   200    |   0xc8   |
|    É     |   201    |   0xc9   |
|    Ê     |   202    |   0xca   |
|    Ë     |   203    |   0xcb   |
|    Ì     |   204    |   0xcc   |
|    Í     |   205    |   0xcd   |
|    Î     |   206    |   0xce   |
|    Ï     |   207    |   0xcf   |
|    Ð     |   208    |   0xd0   |
|    Ñ     |   209    |   0xd1   |
|    Ò     |   210    |   0xd2   |
|    Ó     |   211    |   0xd3   |
|    Ô     |   212    |   0xd4   |
|    Õ     |   213    |   0xd5   |
|    Ö     |   214    |   0xd6   |
|    ×     |   215    |   0xd7   |
|    Ø     |   216    |   0xd8   |
|    Ù     |   217    |   0xd9   |
|    Ú     |   218    |   0xda   |
|    Û     |   219    |   0xdb   |
|    Ü     |   220    |   0xdc   |
|    Ý     |   221    |   0xdd   |
|    Þ     |   222    |   0xde   |
|    ß     |   223    |   0xdf   |
|    à     |   224    |   0xe0   |
|    á     |   225    |   0xe1   |
|    â     |   226    |   0xe2   |
|    ã     |   227    |   0xe3   |
|    ä     |   228    |   0xe4   |
|    å     |   229    |   0xe5   |
|    æ     |   230    |   0xe6   |
|    ç     |   231    |   0xe7   |
|    è     |   232    |   0xe8   |
|    é     |   233    |   0xe9   |
|    ê     |   234    |   0xea   |
|    ë     |   235    |   0xeb   |
|    ì     |   236    |   0xec   |
|    í     |   237    |   0xed   |
|    î     |   238    |   0xee   |
|    ï     |   239    |   0xef   |
|    ð     |   240    |   0xf0   |
|    ñ     |   241    |   0xf1   |
|    ò     |   242    |   0xf2   |
|    ó     |   243    |   0xf3   |
|    ô     |   244    |   0xf4   |
|    õ     |   245    |   0xf5   |
|    ö     |   246    |   0xf6   |
|    ÷     |   247    |   0xf7   |
|    ø     |   248    |   0xf8   |
|    ù     |   249    |   0xf9   |
|    ú     |   250    |   0xfa   |
|    û     |   251    |   0xfb   |
|    ü     |   252    |   0xfc   |
|    ý     |   253    |   0xfd   |
|    þ     |   254    |   0xfe   |
|    ÿ     |   255    |   0xff   |