Computer Science, asked by gautamanshika915, 6 months ago

Find the output of the following:
word = 'work hard
result = word.find('work')
print("Substring, 'work', found at index:", result)
result = word.find('har')
print("Substring, 'har', found at index:", result)
if (word.find('pawan') != -1):
print("Contains given substring")
else:
print("Doesn't contain given substring")​

Answers

Answered by nallabolunikitha
0

Answer:

I think substring, work

Similar questions