I am looking to save the user's input for future reference by my python script.
For example, if the user inputs '11111', if the user ever runs this script again and inputs '11111' the script will know to take a different action due to the input being stored twice.
Sorry if I'm being unclear - what I think would do this is storing user inputs in a list or array, and then before performing an action run a list count to check how many times an input has been used. For example if '11111' appears once in the list do action 1, if '11111' appears twice in the list do action 2, 3 times do action 3 etc...
x = raw_input("Enter integer")
integers = [int(i) for i in x.split()]