title: I keep on getting this error and im not sure what i did wrong
body: <p>This is my code:</p>
  <pre><code>def game_changer(games_list, game):
      if game == &quot;&quot;:
          game.pop()
          return game + &quot; popped from the list&quot;
      elif game != &quot;&quot;:
          if game in games_list:
              game.remove()
              return &quot;1 instance of &quot; + game + &quot; is removed from the list&quot;
          else:
              games_list.append(game)
              return game + &quot;got apppended to the list&quot;
  
  boardg_list = [&quot;Monopoly&quot;, &quot;Sequence&quot;, &quot;Connect Four&quot;]
  
  while boardg_list != &quot;&quot;:
      print(&quot;Here is the list of games:&quot;, boardg_list)
      boardg = input(&quot;Enter the name of a board game or quit to quit: &quot;)
      if boardg.lower() == &quot;quit&quot;:
          print(&quot;Goodbye!&quot;)
          break
      else:
          result = game_changer(boardg, boardg_list)
  </code></pre>
  <p>This is the error that I'm getting:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\prooney\Documents\dev\sodump\leftoperand9.py&quot;, line 22, in &lt;module&gt;
      result = game_changer(boardg, boardg_list)
    File &quot;C:\Users\prooney\Documents\dev\sodump\leftoperand9.py&quot;, line 6, in game_changer
      if game in games_list:
  TypeError: 'in &lt;string&gt;' requires string as left operand, not list
  </code></pre>
  <p>I am not sure what I have done wrong and why I'm getting this error.</p>