Metal Detector - Python

Yes, in fact it’s pretty much essential. All high level programming languages (python, javascript, coffeescript, ruby, java etc.) depend on indentation. Indentation is how much each line is pushed forward. For example after an if statement it is required that you push the next line forward 4 spaces, right? If we can’t see that or copy it from your code we have to try and work out the problem without it or try and put in the indentation ourselves. There are two problems with that: firstly that it’s a waste of our time when you could spend 30 seconds pressing a button and pasting in your code from the game, and secondly the problem in your code could actually be an indentation one, and we would never know because your code wouldn’t be formatted.

I’ve made it even easier to see, so just spend a few minutes reading it.
Thank you,
Danny

2 Likes