While Loop With Range In Python Parameters