1)Write a program to read a string and find out a word is present in that string and also print starting index of the word using strstr().
Answers
Answered by
0
Explanation:
STR = INPUT("ENTER A STRING..")
WORD = INPUT("ENTER A STRING")
M = STR.SPLIT()
FOR I IN M:
IF I==WORD:
PRINT ("WORD IS PRESENT INS STRING")
PRINT(M[0])
Similar questions
Math,
2 months ago
Science,
2 months ago
Chemistry,
2 months ago
English,
5 months ago
Social Sciences,
10 months ago