Jan-05-2017, 10:50 AM
Try this, it might help you understand what's hapening in your code: http://pythontutor.com/visualize.html#co...nces=false
If you're having trouble with loops in general, I'd recommend looking up nedbat's "Loop like a native"
If you're having trouble with loops in general, I'd recommend looking up nedbat's "Loop like a native"