title: Define a function to find largest number in a list
body: <pre><code>def maximum(l,n):
      maximum=l[0]
      for i in range(1,n+1):
          if (l[i]&gt;maximum):
                max=l[i]
  </code></pre>
  
  <p>return maximum</p>
  
  <p>l=[]</p>
  
  <pre><code>#main program
  
  n=input("Enter size of list")
  for i in range(0,n):
      num=input("Enter elements")
      l.append(num)
      lgt=maximum(l,n)
      print 'largest number is',lgt
  </code></pre>
  
  <p>This is the code guys....can you please tell where im wrong??</p>