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
kykrilka [37]
3 years ago
8

Write a program that reads a list of words. Then, the program outputs those words and their frequencies. Ex: If the input is: he

y hi Mark hi mark
Computers and Technology
1 answer:
Gnom [1K]3 years ago
8 0

Answer:

The program in Python is as follows:

wordInput = input()

myList = wordInput.split(" ")

for i in myList:

   print(i,myList.count(i))

Explanation:

This gets input for the word

wordInput = input()

This splits the word into a list using space as the delimiter

myList = wordInput.split(" ")

This iterates through the list

for i in myList:

Print each word and its count

   print(i,myList.count(i))

You might be interested in
16^2-8xy+y^2-25(x-y)^2
Julli [10]
\left[x _{2}\right] = \left[ \frac{21\,y}{25}+\frac{\sqrt{\left( 25600 - 636\,y^{2}\right) }}{50}\right][x​2​​]=[​25​​21y​​+​50​​√​(25600−636y​2​​)​​​​​]
4 0
3 years ago
What is the answer to this?
mixer [17]

Honestly, that sounds like Space Invaders to me if that's an answer choice.

8 0
4 years ago
Which example best demonstrates an impact of computers on health care?
Dennis_Churaev [7]
B-Robotic surgery allows surgeons to make smaller incisions.

Explaination: Anything having to do with medical procedures are healthcare so this is my reasoning.
4 0
3 years ago
Read 2 more answers
What time is spellrd the same forwards and backwards​
Juliette [100K]
12:21 is the correct answer
6 0
3 years ago
When reading words using a Scanner object's next method, _________. a. any characters at the beginning of the input that are con
zavuch27 [327]

Answer:

The answer is "Option d"

Explanation:

The scanner method is the full token of the process, that finds and returns. It is token, which is followed by both the inputs meeting and the guideline template. This method can block, even though the former instance of hasNext() is true while waiting for input, and wrong choices can be described as follows:

  • In option a, It is incorrect because the character at the beginning can't be considered.
  • In option b, It is wrong because the characters are known as the word in which blank space not a part of the word.
  • In option c, It is wrong because in this input before the call is not the method.
3 0
3 years ago
Other questions:
  • _____ is a technique that combines the strongest features of Wired Equivalent Privacy (WEP) and Extensible Authentication Protoc
    11·1 answer
  • Do {
    12·1 answer
  • hich of the following is a disadvantage of online surveys? They result in high response bias They lead to higher cost per comple
    14·1 answer
  • Number Array Class
    5·1 answer
  • Computers have small bumps on the keyboards that enable persons to type without looking at the keyboard. These letters are:
    6·2 answers
  • Question 11
    9·1 answer
  • How does design influence the product's function?
    5·1 answer
  • You are the IT Administrator for the CorpNet.local domain. You are in the process of implementing a group strategy for your netw
    13·1 answer
  • I'll give brainlyist
    9·2 answers
  • Analyze the sentence below . choose your answer on the box below write your answer in your quiz notebook
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!