For a password creation program I need to be able to check if any two consecutive numbers in a list are the same. I would like it to work in such a way that when you input a number and it is appended to the list, it checks the previously appended number to see if they are the same.
For example, I enter the 6th number to a list and it checks to see if it's the same as the 5th number.