Skip to content

Instantly share code, notes, and snippets.

View richvincent's full-sized avatar

Richard Vincent richvincent

View GitHub Profile
456
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: