While Loop With Range Python Function Arguments Type