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')
Cloud computing allows computers from all around the world that are not being used to be able to do extra computations. This removes many of the limitations of a single computer and lets the user calculate things much faster.
When one is typing on MS word and one save the file, this data would be stored as combination of 1s and 0s in the computer.
- Computer data storage can be regarded complex system, immediately a data is saved then;
- The first be converted to simple numbers of 1s and 0s , this number are very easy for a computer to store and these number are regarded as Binary Numbers and all letters as well as photographs are converted to numbers,
- The hardware will record this saved numbers inside the computer.
- These numbers are then organized and transferred to temporary storage which be manipulated by programs, or software.
Therefore, data are been stored as 1s and 0s in the computer.
Learn more at:brainly.com/question/21571591?referrer=searchResults
Answer:
100 times.
Explanation:
The code will loop until i is equal to or greater than roles. I starts at zero and increases by one after each toss.
A man mad stalemate is a probe it just has a different use.