I recently started pset6, so I'm making the transition into python, and I'm having a little bit of trouble trying to figure it all out. I have the code for mario.less and it prints correctly, but its all backwards, My code is:

[hid code]

1 Answer 1


range(spaces, 0)

range returns a list of integers from the start value to the stop value. Your stop value is 0, so this entire loop will never run (since there are no integers in the range of spaces to 0).

Perhaps you want the range from 0 to spaces?

  • Awesome, that did it, Thanks!
    – Joel Banks
    Nov 2, 2017 at 10:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .