def getFloorChoice(): while True: input = raw_input('Please enter your floor choice: ') if ichk.isInt(input) and int(input)<=BUILDING_HEIGHT: break floor = int(input)+1 return floor
def login(): count = 0 while True: count+=1 input = raw_input('Please enter your PIN: ') if ichk.isInt(input) and int(input)==PIN_NUMBER: return True elif count == LOGIN_TRIES: print "You've exceeded the number of login attempts. Goodbye." return False else: print 'Incorrect PIN. Please try again.'
#!/usr/bin/python __file__ = "module_test.py" __author__ = "Taylor Bragg" import sys import mymodule import ichk mymodule.sayhi() print 'Version',mymodule.version #input = raw_input('Input: ') while True: input = raw_input('Input: ') if ichk.isInt(input): break