While Loop With Range Python Function Example