Python Challenge — Can You Find The Simple Bug in 5 Minutes or Less

Amit Juneja
1 min readApr 7, 2017

--

If you don’t make silly mistakes you are not programming fast!

Just recently I wrote a simple Python program which performs an operation on data stored in Python Lists.

Simple, right?

Well not really. I realized my mistake 5 minutes later and was really embarrassed!!!
My code runs but the values are not correct because I forgot one simple rule about the Python data structure I am using in my code.

Let’s see if you can figure out my mistake in 5 minutes WITHOUT StackOverflow or Google. I will post the solution in a follow up blog but feel free to comment below!

--

--