title: Erroneous loop comparing lists
body: <p>I am trying to write a script that will take as input lottery numbers and also a lotto ticket, then see how many matches there are and print this.</p>
  
  <p>I am however having troubles with my loop that compares the elements from two lists. What am I doing wrong?</p>
  
  <p>READ: Serious newbie here.</p>
  
  <pre><code>#sets LOTTO ticket line
  def makeOneTicket(myNums):
      for i in range(0,6):
          nr = input()
          myNums.append([nr])
      return myNums
  
  def makeTicketList(numTix, ticList): 
      ticket = []
      for i in range(0,numTix):
          ticket = makeOneTicket(ticket)
          ticList.append([ticket])
  
          if i == numTix -1:    
              print "Done."
          else:
              print "Next ticket."
      return ticList
  
  def checkTicketMatch(list1, list2):
      counter = 0
      for element in list1:
          if element in list2:
              counter = counter + 1
      return counter
  
  
  
  winNums = []
  myNums = []
  ticList = []
  print "Please enter winning LOTTO numbers: "
  makeOneTicket(winNums)
  
  print "-----------------------------"
  print winNums
  print "-----------------------------"
  
  print "How many tickets do you have?: "
  numTix = input()
  
  print("Enter your lotto numbers one by one: ")
  ticList = makeTicketList(numTix, ticList)
  
  matches = 0
  matches = checkTicketMatch(winNums, ticList[0])
  print matches
  </code></pre>