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

surya k suryak at live.com
Thu Dec 8 12:19:13 CET 2011


I am using the following code 
astr = "foobar"str1 ="foo"astr.find(str1, beg=0, end=3)

This is showing the following error
Traceback (most recent call last):  File "<interactive input>", line 1, in <module>TypeError: find() takes no keyword arguments
I even tried by importing "string" module, but it isn't working.
This same problem with find()
Could you please help me!

 		 	   		  


More information about the Tutor mailing list