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:
3
Explanation:
The sequence seems to follow a 2-step pattern.
1)Divide the first number by 5 to get the second number.
2)Add 10 to the second number to get the third number.
75/5 = 15
15 + 10 = 25
25/5 = 5
5 + 10 = 15
---> 15/5 = [3] (Answer)
Answer:
manufacturing
improving
customer care
transportation
human resource management
Explanation:
business communication use technology to improve their services or products as a way of gaining competitive advantage.