Explain While Loop And For Loop With If In Python