Re: [Tutor] unable to use find(), index()

2011-12-08 Thread Walter Prins
Hi Surya, On 8 December 2011 11:19, surya k sur...@live.com wrote: astr.find(str1, beg=0, end=3) This is showing the following error Traceback (most recent call last): File interactive input, line 1, in moduleTypeError: find() takes no keyword arguments See the documentation for the

Re: [Tutor] unable to use find(), index()

2011-12-08 Thread Christian Witts
On 2011/12/08 01:19 PM, surya k wrote: I am using the following code astr = foobarstr1 =fooastr.find(str1, beg=0, end=3) This is showing the following error Traceback (most recent call last): File interactive input, line 1, inmoduleTypeError: find() takes no keyword arguments I even tried by

Re: [Tutor] unable to use find(), index()

2011-12-08 Thread Steven D'Aprano
surya k wrote: I am using the following code astr = foobarstr1 =fooastr.find(str1, beg=0, end=3) You have mangled the code in your email and lost line breaks. Fortunately this is simple enough to fix: astr = foobar str1 =foo astr.find(str1, beg=0, end=3) Please take more care to post code