Answer:
Code is given as below:
Explanation:
def open_file():
fpointer = open('example.txt')
return fpointer
def main():
dictlist = []
dict_of_words = dict()
fp = open_file()
# loop to iterate over lines in file
for line in fp:
for word in line.split():
if(not dict_of_words.get(word)):
dict_of_words[word] = 1
else:
dict_of_words[word] += 1
for key, value in dict_of_words.items():
temp = (key.lower(), value)
dictlist.append(temp)
print(sorted(dictlist))
main()
Answer:
1. A
2. B
3. C
hope this helps in some way
Answer:
Event is the correct answer to the given question.
Explanation:
Because when user clicks from the mouse on the image or any link then the clickable event triggered the various function. Event one of the essential part of DOM. It is an important event in the JavaScript. When the left button of the mouse is clicked on the images or links which are clickable then the mouseup event occurs.
HTML contains the set if an events when the user click on the clickable events then the JavaScript code are triggered
Processor means to break down something.