Write a Python program to count the frequency of each word in a sentence using a dictionary.
A sentence string.
Print the word frequency dictionary.
Valid sentence
apple banana apple cherry banana apple
{'apple': 3, 'banana': 2, 'cherry': 1}
Split the sentence into words and aggregate frequencies.
def word_frequency(s):
# Write your code here
pass
s = input()
print(word_frequency(s))Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used