Color sequence game in Python <p>The code below is for color sequence guessing in python.</p> <pre><code>import random import time def colorgame(): r='red' b='blue' g='green' y='yellow' v='violet' bl='black' o='orange' w='white' m='magenta' colors = [r, b, g, y, v, bl, o, w, m] sequence=[] win = True while win == True: else: win=False </code></pre> <p>In the first iteration say <code>sequence = 'red'</code> user enters <code>red</code> and it prints <code>"Correct"</code>. But, when it comes to the second iteration (say) <code>sequence = ['red', 'green']</code> and user enters <code>'red' 'green'</code> It is not returning correct. Please help me in correcting the code so that the user input is accepted as list and compared to the existing list (<code>sequence</code>)</p>