9 lines
190 B
Python
9 lines
190 B
Python
|
# helper method to easily take in int inputs
|
||
|
def intInput(text):
|
||
|
while True:
|
||
|
try:
|
||
|
x = int(input(text + '\n'))
|
||
|
return x
|
||
|
except ValueError:
|
||
|
print('You must input an integer!\n')
|