Cpp While Loop Syntax In Python Input Command