 <p>If your list of equipment is <code>list_of_shields</code>, you can achieve what you want like this:</p> <pre><code>choice = raw_input('choose a valid shield from the list please:') while choice not in list_of_shields: choice = raw_input('choose a valid shield from the list please:') </code></pre>