Disarmium Number Challenge in Python

Woman jumping for joy
Photo by Konstantin Planinski on Unsplash
3¹ + 5² equals 28 (3 + 25) and 28 does not equal 35
8¹ + 9² = 89 and 89 equals 89
First code attempt
x = 89
y = 88
z = 131
u = 175
q = 123658
results of code
Second code attempt and use enumerate
A one-liner!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store