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
Social Sciences,
3 months ago
Math,
3 months ago
Math,
3 months ago
English,
6 months ago
Social Sciences,
11 months ago