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
Nitella [24]
4 years ago
6

Create a dictionary called low_d that keeps track of all the characters in the string p and notes how many times each character

was seen. Make sure that there are no repeats of characters as keys, such that “T” and “t” are both seen as a “t” for example.
Computers and Technology
1 answer:
jonny [76]4 years ago
3 0

Answer:

from collections import defaultdict #importing defaultdict

low_d=defaultdict(int)#declaring an empty dictionary

string=str(input("Enter your string \n"))#taking input of the string...

for i in string:#iterating over the string..

   low_d[str.lower(i)] += 1 #adding the character in lowercase and increasing it's count..

for key,value in low_d.items():#iterating over the dictionary.

   print(key+":"+str(value))#printing the key value pair..

Output:-

Enter your string  

ramaranR

n:1

m:1

a:3

r:3

Explanation:

I have declared an empty dictionary using defaultdict then I have ask the user to input the string.Then I iterated over the string and added each character to the dictionary and updated it's count.Then printing the characters and their frequency.

You might be interested in
Question 1 of 10
Basile [38]

Answer:

A, C, and D I believe.

Explanation:

I'm in the same class as you lol

6 0
2 years ago
Sending an e-mail message to customers or potential customers of a legitimate website asking them to click a link that leads to
galben [10]
It is called phishing
3 0
4 years ago
Quiz Time!
Colt1911 [192]

Answer:

This ain't the exact code but it can be used as a template.

Explanation:

var myQuestion = [

{

question: "What is 10/2?",

answers: {

a: '3',

b: '5',

c: '115'

},

correctAnswer: 'b'

},

{

Hope it kinda helps.

6 0
3 years ago
When there is a missing DLL file, _______.
sattari [20]

When there is a missing DLL file, the computer will display error messages. The correct option is B.

<h3>What is a DLL file?</h3>

DLL is dynamic link library is a concept of Microsoft implementation of the shared library concept of Microsoft Windows. This library contains codes and data that can be use in making a program.

Thus, the correct option is B. the computer will display error messages.

Learn more about a DLL file

brainly.com/question/23551323

#SPJ1

4 0
2 years ago
Read 2 more answers
1. (15%) Consider a computer system with three users: Alice, Bob, and Cyndy. Alice owns the file a, and Bob and Cyndy can read i
Fantom [35]

Answer:

answered in Image and explanation is given below.

Explanation:

CL is euqal to user permission on every file

ACL is equal to how permissions are defined for one life for example File a, read, write, execute.

4 0
3 years ago
Other questions:
  • Assume that circle and objects are created as follows Circle circle = new Circle(1); GeometricObject object = new GeometricObjec
    15·1 answer
  • What does a graphic organizer do
    6·1 answer
  • Routing in Practice (30 points). For each of the statements below, decide which it is true or false, and briefly justify your an
    13·1 answer
  • In a folder hierarchy, the top level is referred to as which of the following?
    7·1 answer
  • Which method of traversing a tree would result in a sorted list for a binary search tree?
    11·1 answer
  • Someone places a chocolate bar near a working radar set that is used to locate ships and airplanes. Which best describes what is
    15·2 answers
  • If number is 20, what is printed to the console after this code is executed?
    13·1 answer
  • True or False: Variablename must start with a number.
    13·1 answer
  • ____________________ is the use of an algorithm to scramble data into a format that can be read only by reversing the algorithm.
    15·1 answer
  • Passing an argument by ___ means that only a copy of the arguments value is passed into the parameter variable and not the addrt
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!