Answers for "pyhton string wind index of character"

-1

python string index of

sentence = 'Python programming is fun.'

result = sentence.index('is fun')
print("Substring 'is fun':", result)

result = sentence.index('Java')
print("Substring 'Java':", result)
Posted by: Guest on May-30-2020

Code answers related to "pyhton string wind index of character"

Python Answers by Framework

Browse Popular Code Answers by Language