8 lines
194 B
Python
8 lines
194 B
Python
# helper method to easily take in float inputs
|
|
def floatInput(text):
|
|
while True:
|
|
try:
|
|
x = float(input(text))
|
|
return x
|
|
except ValueError:
|
|
print('You must input a float integer!\n')
|