Answer:
Explanation:
The following Python program uses a combination of dictionary, list, regex, and loops to accomplish what was requested. The function takes a file name as input, reads the file, and saves the individual words in a list. Then it loops through the list, adding each word into a dictionary with the number of times it appears. If the word is already in the dictionary it adds 1 to its count value. The program was tested with a file named great_expectations.txt and the output can be seen below.
import re
def wordCount(fileName):
file = open(fileName, 'r')
wordList = file.read().lower()
wordList = re.split('\s', wordList)
wordDict = {}
for word in wordList:
if word in wordDict:
wordDict[word] = wordDict.get(word) + 1
else:
wordDict[word] = 1
print(wordDict)
wordCount('great_expectations.txt')
Answer:
Cause they are trying to be annoying
Explanation:
Something is wrong with them :)
Answer:
Translate ➡️ allows the user to change words from one language to another
Smart Lookup➡️allows user to find the definition of a word or a phrase.
Thesaurus ➡️ allows the user to find the synonyms and antonyms of a word.
Explanation:
I have been able to match each took to the tasks that they perform.
In Translate, users can easily change words into a different language. That means that words in English can be translated into French, Spanish, etc., and vice versa.
In Smart Lookup, users can actually find definitions of words or phrases. Smart Lookup can be found in Microsoft Word Office.
The Thesaurus is used to find the synonyms and antonyms of words.
These tools make learning very easy and enjoyable.
I would say
Gently type on the computer. Set water away from computer.