title: "TypeError: 'type' object does not support item assignment" when trying to use dictionaries
body: <p>This is a very basic snippet adder/viewer/remover. The way I want it to work, the user would enter a name (dictionary key) and then the text body (value of key), to add entries. For example- "Testsnippet" which is the key for the value "This is a test text snippet."</p>
  
  <p>I don't know what's wrong with it. Trying to use the "add/modify" option lets me enter the snippet text I want to enter as the key's value, but it gives me this error: TypeError: 'type' object does not support item assignment</p>
  
  <p>In addition, trying to use the remove option just gives me the add/modify option, not the remove option. Using "view" works fine.</p>
  
  <pre><code>from sys import exit
  
  clip_list = {'test':'whatever, this is a test'}
  
  breaker = "--------------------"
  
  while True:
      print "What do you want to do?"
      print "[view] [add/modify] [remove] [quit]"
  
      action = raw_input("&gt; ")
  
      if action == "view":
          view_choice = raw_input("Enter snippet name to view OR type 'all' for the entire list:\n&gt; ")
          if view_choice == 'all':
              print clip_list
              print breaker
          else:
              print clip_list[view_choice]
              print breaker
  
      elif action == "add" or "modify":
          snippet_name = raw_input("Enter snippet name:\n&gt; ")
          snippet_input = raw_input("Text:\n&gt; ")
          dict[str(snippet_name)] = str(snippet_input)
          print "Added!"
  
      elif action == "remove":
          snippet_name = raw_input("Enter snippet name to remove:\n&gt; ")
          del dict[snippet_name]
          print "Deleted!"
  
      elif action == "quit":
          print "Goodbye!"
          exit(0)
  
      else:
          print "What? Please enter a valid command!"
  </code></pre>