title: Python error: "list object has no attribute ".upper"
body: <p>I am currently try to program a code in a python that will respond to you if your reply to it is in the list of possible answers. The program example is below.</p>
  
  <pre><code>def responce():
      greetings = ["Hello","Hi","Nice to see you!","Greetings","How's it going?","How are you doing?","What's new?","How's your day going?","Hey!"]
      print("\n")
      reply = input(": ")
      lenrep = len(reply)
      tempstore = []
      for i in range(0,lenrep):
          tempstore.append(i)
          z = 0
          while z &lt; 9:
              tempgreet = greetings[z]
              if tempstore.upper() == tempgreet.upper():
                  reply = ""
                  tempstore = []
                  temprandno = random.randint(0,2)
                  addon = ["what do you want to know?", "what do you want to talk about?", " "]
                  addontext = addon[temprandno]
                  text(greet(), + " " + addontext)
                  z += 1
          if i == " ":
              tempstore = [] 
  </code></pre>
  
  <p>Now my question is, why does it come up with the error </p>
  
  <pre><code>AttributeError: list object has no attribute 'upper'
  </code></pre>
  
  <p>and is there a way to fix my program to make it work?</p>
  
  <p>Thank you for any response.</p>