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:
The first one
Explanation:
The other ones don’t make sense
<h2>
[] Hello! []</h2>
Answer:
2
Explanation:
MS Coding 1 A ED
---------------------------------------------------------------------------------------
- I hope this helped
- Brainilest appreciated!
Resistance measured in Ohms = Voltage divided by current.
120/5=24
B) 24 Ohms
Answer:
Explanation:
Computer equipment is an active and our passive increase, this means that a company bought hardware, the company must pay for that equipment.
For example:
A college bought new hardware to update their computer lab, the account explanation would be.
Debit Credit
computer equipment $1000
account payable - company $1000