1 importcmath2 importmath3 importsys4
5 defget_float(msg,allow_zero):6 x =None7 while x isNone:8 try:9 x =float(input(msg))10 if not allow_zero and abs(x)
1 importcmath2 importmath3 importsys4
5 defget_float(msg,allow_zero):6 x =None7 while x isNone:8 try:9 x =float(input(msg))10 if not allow_zero and abs(x)