Answer:
def wordLineCount(file):
dic = {}
with open(file,'r') as file:
text = file.read()
text = text.strip().split()
for word in text:
if word in dic:
dic[word] += 1
else:
dic[word] = 1
return dic
print(wordLineCount('ben.txt'))
Explanation:
The programming language used is python.
The program starts by defining the function, an empty dictionary is created to hold the words and the number of times that they occur. the with key word is used to open the file, this allows the file to close automatically as soon as the operation on it is finished.
The data in the file is read to a variable text, it is striped from all punctuation and converted to a list of words.
A FOR loop and an if statement is used to iterate through every word in the list and checking if they are already in the dictionary. if the word is already contained in the dictionary, the number of occurrences increases by one. otherwise, it is added to the dictionary.
check the attachment to see code in action.
Answer:
Drainstop
Explanation:
When the stop command is used through Network Load Balancing or NLB manager, it interrupts all client connection in progress on that server. However, the drainstop command does not interrupt any active connection on the server, but instead allow the host to service active connection, but ensures that all new traffic are disabled from the host or server. From the question, since the aim is not to interrupt the any clients currently being served by Server 1, the drainstop command is the ideal command.
Creating a letter head is very simple. However, you need to do some planning. You are required to pick a size and shape accordingly. I would prefer a landscape oriented rectangle. Select a theme appropriate and consistent with the traits of you company. Personalize with a simple and sleek image that can be printed easily if necessary. Select a font that is bold enough, readable, and eye catching. You can include items like a slogan, a name, phone numbers, address, email address, a link to you web address and the established dates.
The best describe the future of cybersecurity is strong security policies offer little protection.
<h3>What is cybersecurity?</h3>
Cybersecurity is the security of data or computer systems. Cybersecurity is provided from the hackers that hacks the data and money online.
As everything is converting digital, the need of cybersecurity is increasing.
Thus, the correct option is B.
Learn more about cybersecurity
brainly.com/question/27560386
#SPJ1
Answer:
Explanation:
A. Max is correct But min will be max(N1,N2) i.e. N2.
B. max=N1, min=0(no common tuples in R1 and R2)
C. max=N1(R1 and R2 are disjoint sets), min=0(all tuples of R1 are present in R2)
D. max=N1*N2, min=N1*N2