def find_occurrences(text, itemsList):
total = 0
for line in text:
total = total + line.count(itemsList)
return total
assert find_occurrences(["welcome to our Python program", "Python is my favorite language!", "I am afraid of Pythons", "I love Python"], "Python") == 4
assert find_occurrences(["this is the best day", "Python is the best language for learning programming", "I am learning", "I love learning"], "learning") == 3
assert find_occurrences(["welcome", "language", "I am", "I love"], "Python") == 0
assert find_occurrences(["What are you doing?", "you like programming?", "We are students", "We are learners"], "are") == 3
assert find_occurrences(["welcome welcome", "wikipedia", "wonderland", "we"], "w") == 5
print(find_occurrences(["welcome to our Python program", "Python is my favorite language!", "I am afraid of Pythons", "I love Python"], "Python"))
print(find_occurrences(["this is the best day", "Python is the best language for learning programming", "I am learning", "I love learning"], "learning"))
print(find_occurrences(["welcome", "language", "I am", "I love"], "Python"))
print(find_occurrences(["What are you doing?", "you like programming?", "We are students", "We are learners"], "are"))
print(find_occurrences(["welcome welcome", "wikipedia", "wonderland", "we"], "w"))