While Loop Validation Python W3schools Exercise