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!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Easy test management tool integration in JIRA

Advantages of having Attendance Management System

Advantages of having Attendance Management System

Save time — Launch Pycharm (Jetbrains) from your terminal

How I started my Python journey

Fix “Blank Video Capture” in Snagit

Snagit stuck on Initialising screen and screen recording won’t work

10x engineers and how Artificial Intelligence can help you find/build ones

How to Become an iOS Engineer in 4 Steps

Entropyfi x Im Community AMA Recap

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
Annika Noren

Annika Noren

More from Medium

Adaptive metropolis algorithm Python code

A Ready Reckoner To Upgrade From Python 2 to Python 3

Push-up Counter Using Python(With Mediapipe)

Python: Input and Output