If And While Loop In Python