<div dir="ltr">I am trying to repeat a certain sequence in a range if a certain even occurs. Forgive me for not pasting my code; but I am not at the machine where it&#39;s saved.<br><br>Basically, I want to get user input and append that input to a list only if the input is not already in the list. I want to do this x amount of times, but if the user input is already in the list, then I want to repeat that step in range(x).<br>

<br>At the prompt, I want to ask the user for:<br><br>Name 1:<br>Name 2:<br>Name 3:<br>etc....<br> but if the user input for Name 3 was the same as the user input for Name 2, then I want to ask the user again for Name 3 instead of continuing to Name 4.<br>

<br>How can I do this?<br clear="all"><br>-- <br><div dir="ltr"><div>Michael J. Lewis</div>
<div> </div>
<div><a href="mailto:mjolewis@gmail.com" target="_blank">mjolewis@gmail.com</a> </div>
<div>415.815.7257</div></div><br>
</div>