Cpp While Loop Syntax In Python Input String From User