I would like to share my opinion. Thanks a lot
Hello, I am Ibrahim, here is my own solution for the last question:
def countlittle (str) :
count=0
wordlittle = 'little'
str1split = str1.split()
for word in str1.split():
#print (word)
if word == wordlittle:
count+=1
return print ("total count of word little is ", count)
str1 = "Mary had a little lamb Little lamb, little lamb Mary had a little lamb.Its fleece was white as snow And everywhere that Mary went Mary went, Mary went Everywhere that Mary went The lamb was sure to go"
count_little(str1)
thanks a lot
1
vote
