title: Searching for syntax errors
body: <p>For class we were given a source code that was riddled with syntax errors. I fixed some of the more obvious syntax issues. Here is the code so far: </p>
  
  <pre><code>def findNumInList():
      for i in (myList):
          if(myList[i] == num):
              print("Found number %s" %num)
  
  def main():
      myList = [1,25,7,99,12]
  
      #Gets number from user, and appends it to the existing list
      num = int(input("Enter a number to be added to the end of the list: "))
      myList.append(num)
  
      #Checks to see if number was successfully added to the list
      findNumInList()
  main()
  </code></pre>
  
  <p>What I am still getting is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "part1.py", line 16, in &lt;module&gt;
      main()
    File "part1.py", line 15, in main
      findNumInList()
    File "part1.py", line 3, in findNumInList
      for i in (myList):
  NameError: global name 'myList' is not defined
  </code></pre>
  
  <p>How is myList not defined?</p>