2024-10-09 17:02:32 +00:00
|
|
|
# helper method to easily take in float inputs
|
|
|
|
def floatInput(text):
|
|
|
|
while True:
|
|
|
|
try:
|
2024-10-09 17:02:44 +00:00
|
|
|
x = float(input(text))
|
2024-10-09 17:02:32 +00:00
|
|
|
return x
|
|
|
|
except ValueError:
|
|
|
|
print('You must input a float integer!\n')
|