The code is to search for a substring...the code takes in 2 inputs...the 2nd string is used to search...i.e 2nd string is smaller in length.
a=input("Enter the 1st string") //Giving error here
b=input("Enter the second string")
com=""
for x in range(0,len(a)):
com=""
for j in range(x,len(b)+x):
com=com+a[j]
if(com==b):
print "Match Found at" + str(x)
else:
continue
The code doest compile....pls help