P.S. this comment apply for all your changes ro "for i in range(x)"