Write a program to find index of a word in given string


Topic: Write a program to find index of a word in given string

Solution

txt = "Hello, welcome to my world."
x = txt.index("welcome")
print(x)



List all Python Programs