On Tue, Mar 15, 2011 at 1:01 AM, Sachin Kumar Sharma <ssharm...@slb.com> wrote: > I am getting error on the following syntax while running in Ipython and > spyder and I failed to figure out why > > for i in range(len(list)) > ^ > SyntaxError: invalid syntax
You forgot the required colon (":"). It should be for i in range(len(list)): # note trailing colon Cheers, Chris -- "BB"? http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list