Preview:
# built-in function ord converts character to numeric code
# chr converts numeric codes to characters
# letters of the alphabet are encoded in alphabetical order
ord('c') - ord('1')
>> 2

# NOTE: numeric codes for uppercase letters are different
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter