Using Range In While Loop Python 3