S
SUBHABRATA
Dear All,
I have a small question.
If I have code line like the following:
a1="God"
a2="God is always great"
a3=a2.index(a1)
a4=a2.find(a1)
a5=a2.split()
a6=a5.index(a1)
a7=a5.find(a1) # Invalid as find is applicable only in string but not
in list.
if a4>-1:
print "God may be always great"
I have a small question.
If I have code line like the following:
a1="God"
a2="God is always great"
a3=a2.index(a1)
a4=a2.find(a1)
a5=a2.split()
a6=a5.index(a1)
a7=a5.find(a1) # Invalid as find is applicable only in string but not
in list.
if a4>-1:
print "God may be always great"