title: TypeError: can only concatenate list (not "str") to list
body: <p>I am trying to make an inventory program to use in an RPG. The program needs to be able to add and remove things and then add them to a list. This is what I have so far:</p>
  <pre><code>inventory=[&quot;sword&quot;,&quot;potion&quot;,&quot;armour&quot;,&quot;bow&quot;]
  print(inventory)
  print(&quot;\ncommands: use (remove) and pickup (add)&quot;)
  selection=input(&quot;choose a command [use/pickup]&quot;)
  
  if selection==&quot;use&quot;:
      print(inventory)
      remove=input(&quot;What do you want to use? &quot;)
      inventory.remove(remove)
      print(inventory)
  
  elif selection==&quot;pickup&quot;:
      print(inventory)
      add=input(&quot;What do you want to pickup? &quot;)
      newinv=inventory+str(add)
      print(newinv)
  </code></pre>
  <p>When I run this and try to pick something up, I get this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;H:/Year 10/Computing/A453/Python Programs/inventory.py&quot;, line 15, in &lt;module&gt;
      newinv=inventory+str(add)
  TypeError: can only concatenate list (not &quot;str&quot;) to list
  </code></pre>
  <p>Does any one have a fix for this, it would be greatly appreciated.</p>