Ruby While Syntax In Python Input Function Integer