This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
456 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
number_of_args = len(sys.argv) | |
def get_int(): | |
""" Function used to test user input as a valid integer. | |
If input is not a valid integer ask the user to try again""" | |
integer = "" | |
switch = False | |
while switch == False: |
NewerOlder