length="This is a python course"
'''It check given string's last word are end with course or not if yes return true either else'''
print(length.endswith("course"))
print(length.endswith("python"))

length1="this is a python string program string"
print(length1.endswith("program"))
print(length1.endswith("course"))
print(length1.count("program"))
print(length1.count("p"))
print(length1.capitalize())
print(length1.find("program"))
print(length1.find("string")) 
# in given string the word "string" are present at two time but find() function find only first occurence
print(length1.replace("program","code"))







