Write a program that reads a list of words. Then, the program outputs those words and their frequencies.

Answers

Answer 1

Answer:

The program in Python is as follows:

mylist = []

nword= "y"

while(nword== "y"):

    word = input(": ")

    mylist.append(word)

    nword = input("New word: y/n: ")

for item in mylist:

    freq = mylist.count(item)  

    print(item, freq)

Explanation:

This creates an empty list

mylist = []

This is used to let the user input more word or stop input

nword = "y"

The following iteration lets the program read words from the user

while(nword == "y"):

This gets the user input

    word = input(": ")

This appends the inputted word into the list

    mylist.append(word)

This prompts if the user wants to input more word or not

    nword = input("New word: y/n: ")

This iterates through the list

for item in mylist:

This gets the frequency of each word in the list

    freq = mylist.count(item)  

This prints the word and the frequency

    print(item, freq)


Related Questions

Write a program for determining if a year is a leap year. In the Gregorian calendar system you can check if it is a leaper if it is divisible by 4 but not by 100 unless it is also divisible by 400.

Answers

Answer:

def leap_year_check(year):

return if int(year) % 4 == 0 and (int(year) % 100 != 0 or int(year) % 400 == 0)

Explanation:

The function is named leap_year_check and takes in an argument which is the year which we wish to determine if it's a new year or not.

int ensures the argument is read as an integer and not a float.

The % obtains the value of the remainder after a division exercise. A remainder of 0 means number is divisible by the quotient and a remainder other wise means it is not divisible by the quotient.

If the conditions is met, that is, (the first condition is true and either the second or Third condition is true)

the function leap_year_check returns a boolean ; true and false if otherwise.

using a timer to generate a random number, develop a program that displays random numbers between 1 and 47 (or whatever) for your state's lottery

Answers

Answer:

Explanation:

The following code is written in Python. It creates a variable that detects the current time. Then it loops through a range of numbers and chooses the last random number after 2 seconds. Finally, it prints that number to the screen. This function can be called countless times depending on the number of state lottery numbers needed.

import random

import time

start_time = time.time()

while time.time() - start_time < 2:

   lottery_number = random.randint(0, 48)

print(lottery_number)

is a biometric system an input, output, storage or soft device?​

Answers

Answer: Input

Explanation:

Biometric systems work by using a person's physical or behavioral characteristics to digitally ascertain that it is indeed that person that is requesting access to what it is they are requesting access to such as systems, data and devices.

Examples include fingerprints and facial patterns. Biometric systems therefore take in the information presented which makes them input devices.

What is abstraction and how does it relate to how computers store information?

Answers

Answer:

Definition - What does Abstraction mean?

Abstraction is a fundamental principle in some types of computer science. It is a key design aspect of object-oriented programming languages and application programming interfaces. It's also one of the least understood ideas in programming, partially for semantic reasons.

PLEASE MARK BRAINLIEST

Abstraction is commonly defined as the extraction of relevant information from a larger data set, where utilizing abstraction allows engineers and others to simplify a codebase.

Techopedia explains Abstraction

The reason this is confusing to many people is that abstraction doesn't “sound like” what it is, semantically. It sounds like making something more vague, because that's how we use it in general language.

However, in computer science, abstraction typically means simplification and separating the signal from the noise in order to make programming more efficient and effective.

Explanation:

The guy is right above me mark him brainiest

Write a function that takes two arguments, both integers, and prints the product. In the main part of your program (the part that isn’t inside a function), call your function to test it out.

Answers

Answer:

def multiply(a, b):

print(a*b)

multiply(2,3)

Explanation:

Using python3 :

The program is written using python 3 ;

def represent the statement used at the start of a function.

Multiply is the name given to our function (it could be any other name of interest)

(a, b) are the argument, which represents the two integers the function takes.

print(a * b) = What the function does is to print the product of a and b

multiply(2,3) is used to test out our function by call the name and Giving  it two integers to work on. The function will print 6

Convert the
binary number
10 110 110 111
to hexadecimal​

Answers

Answer:

0x5b7

Explanation:

You should group the binary digits in groups of 4 for easier conversion:

10 110 110 111 = 0101 1011 0111

Then you can look it up in a table and find 5b7

Please select the word from the list that best fits the definition
.edu sites

- Safe Sites
- Unsafe Sites

Answers

Answer Is

Safe Sites.

Explaining:

Edu Sites Are For Educational Purposes. So They Need To Be Secure.

Answer:

safe sites

Explanation:

i got it right on edg

How can you find out which study method is best for you?
O
A. Use the method your friend is using, because if it works for him, it will work for you.
B. Select the first method you try, and do not try anything else.
C. Try two methods, and select the one that seems the best out of the two methods that you have tried.
O D. Try many different methods, and evaluate how effectively they work for you.

Answers

Answer:

d

Explanation:

Answer:

D.

Explanation:

You should always try each one and see which one best fits you.

Samantha wants to find out movie time for the new movie puppy save the world at her local theater which keyboard should Samantha use
Movie theater plus near
Movie theater plus near plus puppy save the world plus time
Puppy saves the world plus time
Puppy saves the world movie

Answers

Answer:

Movie theater plus near plus puppy save the world plus time

Explanation:

Answer:

Movie theater +near +Puppy Saves the World +time

Explanation:

These are four important key details that should be included when looking for something specific such as going to see a movie

A system of classifying and organizing online content into categories by the use of user-generated metadata such as keywords is called a

Answers

Answer:

Folksonomy.

Explanation:

A system of classifying and organizing online content into categories by the use of user-generated metadata such as keywords is called a folksonomy.

This ultimately implies that, folksonomy is a user-generated system which is typically used for classifying and organizing online content into various categories through the use of metadata such as keywords, electronic tags and public tags in order to make it easier to find in the future.

Hence, folksonomy is highly beneficial in areas such as collaborative learning, teacher resource repository, collaborative research, educational platforms, e-commerce etc.

Better Control, higher security, and privacy can be achieved through which type of cloud deployment model

Answers

Answer:

Private cloud deployment model

Explanation:

Cloud computing can be defined as a type of computing that requires shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.

Generally, cloud computing offers individuals and businesses a fast, effective and efficient way of providing services.

Cloud computing comprises of three (3) service models and these are;

1. Platform as a Service (PaaS).

2. Infrastructure as a Service (IaaS).

3. Software as a Service (SaaS)

Also, there are three (3) main cloud computing models and these are;

I. Public cloud deployment model.

II. Hybrid cloud deployment model.

III. Private cloud deployment model.

Hence, better control, higher security, and privacy can be achieved through a private cloud deployment model because it is dedicated solely to the user and void of any public interference.

What is the value of the count variable after the execution of the code snippet below? ArrayList somenum = new ArrayList(); somenum.add(1); somenum.add(2); somenum.add(1); int count = 0; for (int index = 0; index < somenum.size(); index++) { if (somenum.get(index) % 2 == 0) { count++; } }

Answers

Answer:

The answer is "1".

Explanation:

The value of the count variable after the code snippet execution is 1 because we're using three in the array list, instead, take one of these for a loop of 0 to the array list size but now the ArrayList size is 3, as well as the loop size, operates from 0 to 2:

In the index =0:

We get somenum.get(index)=somenum.get(0)=1%2 not 0, so we go on to the next index.

Index: = 1

We get a somenum.get(index) =somenum.get(1) = two percent 2 comparable to 0, so the count variable is increased to 1 and switch to just the following index.

count=1  

Index: = 2

They have a somenum.get(index) = somenum.get(2)=1 percent 2 not equivalent to 0.

Index= 3:

The index =3 <somenum.size()=3.

It isn't valid, and the loop breaks out and prints out the value of a count variable which is 1. so this becomes 3 < 3.

Your network administrator asked you to change the IP for your first NIC to 206.206.206.138 so that users on the internet can reach the website you developed. What company do you work for

Answers

Answer:

Arizona State University

Explanation:

Internet Protocol address is a numerical means of identification assigned to each computer system that has access to the internet. It serves the function of identifying and communicating with other networks when connected to the internet.

When packets of information are exchanged over the internet, the incoming data contains a header which bears the internet protocol address of the sender as well as that of the receiver. The internet protocol address, 206.206.206.138, unique to Arizona State University.

Assume that programs spend about 25% of their time waiting for I/O operations to complete. If there are FOUR programs loaded into memory, what is the processor utilization

Answers

Answer:

0.9961

Explanation:

Given that:

Proportion of time waiting for I/O operation to complete = 25% = 0.25

Number of programs waiting in memory = 4

Using the CPU Utilization formula :

CPU Utilization = 1 - p^n

1 - 0.25^4

1 - 0.00390625

0.99609375

Question # 3
Multiple Choice
What is the next line?

>>> grades = {100:'A', 75:'C', 89:'B', 80:'B'}
>>> grades[75]


1

2

'A'

'C'

Answers

Answer:

C is it

Explanation:

Answer:

its the 4th option 'C'

Explanation:

Create a program to determine the largest and smallest number out of 15 numbers entered (numbers entered one at a time). This should be done in a function using this prototype: double larger (double x, double y); Make sure you use a for loop expression inside your function.

Answers

Answer:

Create a program to determine the largest and smallest number out of 15

Explanation:

 #include <iostream>

using namespace std;

double larger (double, double);

int main()

{

double max, num;

cout<<"Please, enter 15 numbers, one at a time, and the program will return the largest number.\n";

cout<<"Enter the first number: ";

cin>>"max";

for(int i=1; i<=14; i++)

{

cout<<"\nEnter another number: ";

cin>>"num";

max=larger(max,num);

}

cout<<"The largest number is: "<<larger;

return 0;

}

double larger (double x, double y)

{

if(x>y)

return x;

else return y;

}

The Date Navigator is a small calendar that is displayed in the __________ Pane or in the Calendar peek that provides a quick way to display specific dates or ranges of dates in the calendar.

Answers

Answer:

The Date Navigator is a small calendar that is displayed in the _Navigation___ Pane or in the Calendar peek that provides a quick way to display specific dates or ranges of dates in the calendar.

Explanation:

Navigation Pane gives access to database objects.  Its purpose is to enable quick movements from one area of the document to another.  The Navigation Pane also displays the folders within view.  It is an important tool for users to navigate from one window area to another.  Some Navigation Panes, especially on the Microsoft word, display the headings, pages, and results.

sin lord is 35k a=ok awesome but i think mythic gem better ok so yeyeyeyeyeyeyeyeye
or no, does somebody know sinister lords value or mythic infinity gem i think sin lord is 35k but what about mythic gem.

Answers

Answer:

sinister lord I'm pretty sure is 35-36k and mythic I'm not sure but i think the shiny value is like 35-34k and dropping and sin is rising, I don't know mythic value but u can check in a value list but sinister lord is rising so yea but if your doing mythic for sin lord L because mythic is worth way more than the shiny gem because its more rare.

Explanation:

A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked.

Answers

Answer:

The program in Python is as follows:

steps = int(input("Steps: "))

miles= steps/2000

print("Miles: "+str(miles))

Explanation:

This prompts the user for number of steps

steps = int(input("Steps: "))

This calculates the miles walked

miles= steps/2000

This prints the calculated miles

print("Miles: "+str(miles))

Chantelle wants to change the color scheme for her company's web app, and she needs to get the logos updated. What kind of developer should she talk to

Answers

Incomplete question. The options;

a. Back-end

b. DBA

c. Front-end

d. Mobile

Answer:

c. Front-end

Explanation:

A Front-end developer is skilled at designing the external features of a web application or web browser. In other words, the user interfaces such as the color and logos of an app are designed by the Front-end developer.

Hence, Chantelle should talk to an experienced Front-end developer.

var grades = 88;

for(var i=0; i < 100; i++){

grades++;

}
How many times does this loop iterate?

Answers

Answer:

100 times

Explanation:

first value of i in the loop is 0. Last value is 99. So loop never iterates with i at 100.

What is the best way to set up the spreadsheet? List each expense in a row. List each income source in a column. List each expense and income source in a separate column. List each month in a row. List each month in a column. List each expense in a row. List each expense in a column. List each month in a row.

Answers

Answer:

is b

Explanation:

List each income source in a column is the best way to set up the spreadsheet.

What is a spreadsheet?

A spreadsheet is a computer program for organizing, calculating, and storing data in tabular form. Spreadsheets were created as digital counterparts to traditional paper accounting spreadsheets.

The data entered into a table's cells is what the program uses to run. Each cell may include text, numeric data, or formula results that automatically calculate and display values based on the contents of neighboring cells.

One such electronic document may also be referred to as a spreadsheet. Users of spreadsheets can change any stored value and watch the changes in calculated values.

This enables quick investigation of numerous scenarios without the need for manual recalculation, making the spreadsheet helpful for "what-if" study.

Modern spreadsheets include built-in functions for typical financial accounting and statistical procedures in addition to conducting basic mathematical and arithmetic operations.

Learn more about spreadsheet, here

https://brainly.com/question/8284022

#SPJ6

Disney's first cartoon

Answers

Answer:

Mickey Mouse

Explanation:

Answer:

Oswald the Lucky Rabbit \(⋅⃘﹎᷊⋅⃘)

Explanation:

Oswald the Lucky Rabbit (also known as Oswald the Rabbit or Oswald Rabbit) is a cartoon character created in 1927 by Walt Disney and Ub Iwerks for Universal Pictures. He starred in several animated short films released to theaters from 1927 to 1938. 27 animated Oswald shorts were produced at the Walt Disney Studio.

What is the correct sequence of steps in converting application data to bits for network transmission on a TCP/IP network

Answers

Answer:

1. Application data

2. segments

3. packets

4. frames

5. bits

Explanation:

The correct sequence of steps in converting application data to bits for network transmission on a TCP/IP network is as follows:

1. Application data: the conversion and formatting of information into data is done in Upper layers then moved to Transport Layer.

2. segments: at this stage, the data is turned into segments and then moved to the Network layer.

3. packets: at this point, the segment is transformed into packets and then moved to the Data Link layer

4. frames: here the packets are converted to frames and moved to the physical layer.

5. bits: this is where the frames are converted bits and then sent to the network outlet.

_____ is a problem-solving technique where each problem in a database is stored with a description and keywords that identify it.

Answers

Answer:

Case-based reasoning.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.

Case-based reasoning is a problem-solving technique where each problem in a database is stored with a description and keywords that identify it. It is typically based on cognitive science and artificial intelligence.

Case-based reasoning is a problem-solving technique where each problem in a database is stored with a description and keywords that identify it.

What is Case-based Reasoning?

Case-based reasoning is a system of solving problems in engineering and artificial intelligence. Here, problem-solvers resolve problems based on past experiences.

For example, to repair a faulty computer, the repairman recalls a computer that such a similar case and applies the same reasoning in solving the current problem.

Therefore, the correct answer is case-based reasoning because, past problems are stored with keywords that will make it easier to solve new problems.

Learn more about casebased reasoning here:

https://brainly.com/question/9305378

The best way to help prevent a system from a worm attack is to use anti-virus software anti-malware software a firewall a router

Answers

Answer:

anti-malware software.

Explanation:

An anti-malware software can be defined as a software application or program designed to avail end users the ability to protect their computer system and other end devices from malicious programs (malwares) such as rootkit, worms, adware, spam, spyware, etc.

Some examples of anti-malware softwares are Avast, Comodo, Kaspersky, Norton, Eset 360 etc.

Hence, the best way to help prevent a system from a worm attack is to use an anti-malware software.

Basically, anti-malware software has some inbuilt techniques such as sandboxing, behavior monitoring and malware removal feature designed to help prevent a system from a worm attack and other malicious programs.

doubleUp Write a method doubleUp that doubles the size of a list of integers by doubling-up each element in the list. Assume there's enough space in the array to double the size. Suppose a list stores the values [1, 3, 2, 7]. After calling list.doubleUp(), the list should store the values [1, 1, 3, 3, 2, 2, 7, 7].

Answers

Answer:

The solution in Python is as follows:

class myClass:

     def doubleUp(self,myList):

           myList[:0] = myList[::2] = myList[1::2] = myList[:]

       

mylist =  [1, 3, 2, 7]

list = myClass()

list.doubleUp(mylist)

print(mylist)

Explanation:

To create a method in Python, the first step is to create a Class.

This is done in the following line:

class myClass:

Then this line defines the method

     def doubleUp(self,myList):

This line duplicates the elements of the list

           myList[:0] = myList[::2] = myList[1::2] = myList[:]

This defines the list        

mylist =  [1, 3, 2, 7]

This creates an instance of the class

list = myClass()

This passes the list to the doubleUp method

list.doubleUp(mylist)

This prints the duplicated list

print(mylist)

how has State-terrorism done for us and how we can prepare for it?

Answers

Answer:

Developing a plan that prepares not just one family but their whole community.

Explanation:

I think a great way to  prepare for  state-terrorism is by developing a disaster awareness plan. An event that hosts  first-responders, medics, policemen, etc. To speak over these circumstances in the event, there are many possibilities with a disaster awareness event, activities for the younger ages that teach kids to be "prepared not scared" this event can go a lot farther than state-terroism a step further would be to prepare people for natural disasters that can occur, and the ways to prepare for this.

Changing the position of text on the screen is called ________.

Answers

Answer:

Formatting

Explanation:

Hope this helps


Match each command group under Picture Tools to the appropriate tasks.
Adjust
Crop and rotate an image,
Arrange
Position images on a slide,
Size
Modify the shape, border or outline of an
image
Picture Styles
Modify the color and brightness of an image

Answers

Answer:

look at the attachment for correct answers.

The match up of the command group under Picture Tools to the appropriate tasks is given in the image attached.

What are the picture tools?

Picture Tools are known to be tools that are often used to enhance an image. They includes:

BrightnessContrastCompress Pictures, etc.

Conclusively, the use of this tools will make your pictures to be better and attractive to behold.

Learn more about Picture Tools from

https://brainly.com/question/9566501

#SPJ2

Other Questions
A museum gift shop manager wants to put 1,588 polished rocks into small bags to sell as souvenirs. If the shop manager wants to put 14 rocks in each bag, how many complete bags can be filled? How many rocks will be left over? 6 in4 in4 in.What is the surface area of the right square pyramid? If the equation of a line is 4x + 4y = 1 and equation of a second line is x + y = -8 which of the following is true How is the image of a figure that is dilated related to the original figure?It is congruent.It is equivalent.It is similar.It is rotated. A student rides a bicycle for 15 miles in 3 hours. What is the student's speed? What else would you need to know for Velocity? Submit 10Question 1 of 40 POSThe area of a rectangular tabletop is 24 ft.^2 lThe length of the table is 2longer than its width. Which equation could be used to find the width (w) of the tabletop?0 24 = 2 + 2O 24 = +O 24 - 22O 24 = 22 + 2 What are considered an oxidizing mutagenic agent A scientist should be creative in order to? Yesterday I ran 9.6 miles at an average speed of 0.4 miles per 5 minutes. How long did it take me to run the 9.6 miles? True or false: A selective force (such as antibiotics) must be present for DNA mutations to occur. Group starts According to the chart, the country with the largeststanding army was________Which nation would have the largest advantage atsea?________ what is the constat rate of change shown in the graph below Discuss the difference between absolute advantage and comparative advantage. Which is more important in determining trade patterns 1. In paragraph 9, Joshua Vink uses reasons and evidence by-O A. citing statistics that provide evidence for logical reasoning.B. citing a direct quotation to show that the counterpoint is weak.C. using facts to show that the value of gaming communication is exaggerated.D. using an expert opinion to support a point about digital literacy and gaming. 20 POINTS AND BRAINLIEST FOR CORRECT!!!!3 1/3 OF 10 12. What is the mass number of an atom that has 4 protons, 4 electrons, and 5 neutrons? Outside Gretchen's house at noon, the temperature was -5 F. The temperature fell 2 F per hour for the next 6 hours.What was the temperature at 6:00 p.m.? If you can purchase 5 pounds for $4, how many pounds can you purchase for $16? *a. 20b. 16c. 25d. 24 Written in response to the TownshendActs by John Dickinson, this asserted theidea that "no taxation withoutrepresentation" was an essential part ofEnglish government, and that Parliamenthad no right to impose duties on Britishcolonies.A: Circular Letter B: Letters from a farmer in Pennsylvania in the wanderer What advice is offered in lines 110-113?