print("-----------------------------------------\nYou have added the following to the list:\n\n{}\n-----------------------------------------".format(sys.argv[1]))
#how to handle different user inputs
def handleargs():
if len(sys.argv) <= 1:
showrandomline()
elif len(sys.argv) > 2:
toomanyargs()
elif sys.argv[1].isspace() == True or sys.argv[1] == "":
noinputerror()
else:
addtofile()
def handlechoice():
userchoice = input()
if userchoice == "y":
createlist()
elif userchoice == "n":
print("bye bye")
else:
print("sorry, I didn't get that, type either y or n:")