While Loop With Range In Python For Array Smaller