1 549
📍Which of the following is the truncation division operator in Python?
10 مارس 2024, 08:44
✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!
إظهار المزيدstring = "Lorem ipsum dolor sit amet"
words = string.split(" ")
word_counts = {}
for word in words:
word = word.lower()
word_counts[word] = word_counts.get(word, 0) + 1
print(word_counts)