Preview:
num = input("Please enter a two digit number.")
digit_1 = num[0]
digit_2 = num[1]
result = int(digit_1) + int(digit_2)

print(result)
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