2021-08-26 01:42:17 +00:00
|
|
|
# helper method to easily take in float inputs
|
|
|
|
def floatInput(text):
|
|
|
|
while True:
|
|
|
|
try:
|
2022-03-31 15:19:23 +00:00
|
|
|
x = float(input(text))
|
2021-08-26 01:42:17 +00:00
|
|
|
return x
|
|
|
|
except ValueError:
|
|
|
|
print('You must input a float integer!\n')
|