On line 22 you are setting space to 1 when you increase the length. I'm pretty sure if you take that line out you should be good.
sfuo
Practically a Master Poster
656 posts since Jul 2009
Reputation Points: 164
Solved Threads: 99
and how would the lines 16 to 18 would then be executed? Variable i is not reset in while loop.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852