1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
FromTheMoon [43]
3 years ago
7

g Define a function called most_frequent_letter which takes no arguments. This function will return a dictionary which will have

as keys the words in the file words.txt and values the most frequent letter occurring in the word. So for the word ’hello’ the value will be ’l’.
Computers and Technology
1 answer:
skad [1K]3 years ago
3 0

Answer:

def most_frequent_letter():

   file = open("words","r")

   dWords = {}

   for line in file:

       line = line.rstrip()

       words = line.split(" ")

       for word in words:

           counts = {}

           for c in word:

               counts[c] = counts.get(c, 0) + 1

           dWords[word] = max(counts, key=counts.get)

   return dWords

print(most_frequent_letter())

Explanation:

the file used was words in txt format and its contents are as follows:

hello aamir jan khan

parallelogram abdullah

anaconda ali

pycharm notebook

You might be interested in
The actual database of active directory shared resources is stored on one or more computers designated as:
Mila [183]

Solution:

It is done by Native Os X command line tool that can do this.

Active Directory, the data store contains database files and processes that store and manage directory information for users, services, and applications. A copy of the data store runs on each domain controller in the forest. The Active Directory data store is often referred to as the directory.

The ideal environment for the data store includes the following:

A domain controller running an operating system in the Windows Server 2003 family and containing hardware that meets the minimum hardware requirements of the edition of the operating system (Windows Server 2003, Standard Edition; Windows Server 2003, Enterprise Edition; or Windows Server 2003, Datacenter Edition)

For environments consisting of multiple domain controllers, the presence of a fully functioning Active Directory replication topology

For environments consisting of multiple domain controllers, the presence of a fully functioning File Replication Service (FRS) topology

A regular backup schedule

Regular monitoring of Active Directory, either through manual review of event logs or through an automated monitoring solution, such as Microsoft Operations Manager (MOM)

This is the required description describes the elements of the Active Directory data store, including its architecture, protocols, interfaces, logical structure, physical structure, processes and interactions, and network ports.


6 0
3 years ago
Microsoft outlook is one of the most widely used _____ software applications
Marysya12 [62]
Computer: Microsoft Outlook is one of the most widely used computer software application.
7 0
3 years ago
Fill in the blank with the correct response.<br> A _<br> is an unknown network.
alexgriva [62]

Answer:

ip address

Explanation:

please mark brainliest

7 0
3 years ago
What is the IP address and TCP port number used by the client computer (source) that is transferring the file to gaia.cs.umass.e
lesya692 [45]

Answer:

Explanation:

ae

5 0
3 years ago
What skills and practices are important when creating an interactive program?
fenix001 [56]

The skills and practice that are important for creating an interactive program is brainstorming ideas, examination of similar programs and understanding of computer language.

<h3>What is an interactive program?</h3>

In computer, an interactive program refers to a type of computer software program that requires the user interaction to operate.

Some examples of the Interactive software includes word processors, spreadsheet applications, coreldraw etc

In conclusion, the skills and practice that are important for creating an interactive program is:

  • brainstorming of ideas
  • examination of similar programs
  • understanding of computer language.

Read more about interactive program

<em>brainly.in/question/4966741</em>

6 0
3 years ago
Other questions:
  • As referenced in this Canvas guide (Links to an external site.), Canvas is best viewed at a minimum of 800x600 pixels, which is
    5·1 answer
  • What type of attack is targeted against a smaller group of specific individuals, such as the major executives working for a manu
    9·1 answer
  • Crop marks are used on an illustration to indicate to the printer the
    10·1 answer
  • This motherboard already has 1GB of RAM installed in the DIMM1 slot. The customerwould like to upgrade to 4GB total memory, use
    7·1 answer
  • How to do this PLEASE HELP 80 points!
    15·1 answer
  • Which scenario is best for an online discussion group?
    5·1 answer
  • You are the administrator for a small network with several servers. There is only one printer, which is centrally located. Altho
    10·1 answer
  • SOMEBODY HELP ME ASAP PLEASE AND THANK YOU
    14·2 answers
  • Write a recursive method called printNumPattern() to output the following number pattern.Given a positive integer as input (Ex:
    13·1 answer
  • For each of the innovations below. Decide if it is a computing innovation or not. Part 3 Continued.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!