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
Aleks04 [339]
3 years ago
12

Write a python program which prints the frequency of the numbers that were

Computers and Technology
1 answer:
REY [17]3 years ago
3 0

Answer:

The program is as follows:

my_list = []

inp = input()

while inp.lower() != "stop":

   my_list.append(int(inp))

   inp = input()

Dict_freq = {}

for i in my_list:

   if (i in Dict_freq):

       Dict_freq[i]+= 1

   else:

       Dict_freq[i] = 1

for key, value in Dict_freq.items():

   print (key,"-",value,"times")

Explanation:

This initializes a list of elements

my_list = []

This gets input for the first element

inp = input()

The following iteration is repeated until user inputs stop --- assume all user inputs are valid

while inp.lower() != "stop":

This appends the input to the list

   my_list.append(int(inp))

This gets another input from the user

   inp = input()

This creates an empty dictionary

Dict_freq = {}

This iterates through the list

for i in my_list:

This adds each element and the frequency to the list

<em>    if (i in Dict_freq): </em>

<em>        Dict_freq[i]+= 1 </em>

<em>    else: </em>

<em>        Dict_freq[i] = 1 </em>

Iterate through the dictionary

for key, value in Dict_freq.items():

Print the dictionary elements and the frequency

   print (key,"-",value,"times")

You might be interested in
You have just changed the system time within your computer's BIOS. You choose to save the settings upon exit. What happens next
vazorg [7]
The system reboots with the time changed
8 0
3 years ago
Read 2 more answers
What can you do to make sure no one outside your company can gain access to its wireless network?
Oksana_A [137]

Disable SSID broadcasting, Lower radio energy groups, and Enable MAC filtering.

<h3>Why would you disable SSID broadcasting?</h3>
  • Disabling the SSID Broadcast is one method of ensuring your wireless web.
  • This procedure will stop other users from detecting your SSID or your wireless network title when they attempt to view the available wireless networks in your area.
  • The network character exists delivered to wireless devices, which is the reason for disabling the SSID broadcast.
  • A typical wireless adapter and its associated software will identify and list all available SSIDs for networks that are within range.
  • When somebody disables SSID broadcast on any of those networks, the network will no extended show up in the wireless adapter's list of known networks.

To learn more about Disable SSID broadcasting, refer to:

brainly.com/question/15289342

#SPJ4

The complete question is:

Your company shares a building with a competitor's branch office. Recently, you noticed that some computers other than company computer have tried to connect to the wireless network unsuccessfully. When you are in the parking lot, you also notice that the company's wireless network SSID can be seen on your smartphone.

What can you do to make sure no one outside your company can gain access to its wireless network?

6 0
2 years ago
PowerPoint’s _______________ feature allows you to trim the beginning and end of your clip by designating your desired Start Tim
saw5 [17]
<span>PowerPoint's Trim Video feature allows you to trim the beginning and end of your clip by designating your desired Start Time and End Time. </span>
5 0
3 years ago
Riya wants to save her project work in an external device so that she can show it to her class teacher. Help her to choose the d
Alina [70]

Answer:

The answer is A) Pen Drive.

Explanation:

A pen drive is a device which can be used to store data and move it somewhere else.

6 0
3 years ago
Read 2 more answers
As a project manager, why is analysis an important aspect of the job? Clarify the value of teamwork List the benefits of brainst
kozerog [31]

Answer:

Analysis is an important aspect of the job because it makes proper decision making process.

The values of teamwork are to find the best solution to problems and motivate the whole team.

The benefits of brainstorming include outside input, idea building, routine breaks, .etc...

The advantages of project planning are:

  • Team members become responsible for tasks assigned to them
  • Planning is required so that labor, finance and time resources can be thoroughly considered, including the risk of project delays due to some members working on several projects at the same time
  • Allowance for contingencies should be included in project plans so that if and when they arise, risk mitigation strategies are ready.
  • With a clear direction to follow, team members don’t get sidetracked by their own ideas.

Explanation:

8 0
3 years ago
Other questions:
  • Are used to connect a computer to a telephone line for dial-up internet access
    5·1 answer
  • Which of the following resources is an example of a web-based application?
    15·1 answer
  • How has information technology made piracy possible
    14·1 answer
  • The introduction of new information technology has a: A. dampening effect on the discourse of business ethics. B. waterfall effe
    14·1 answer
  • Difference between Hard copy and Soft copy?​
    13·1 answer
  • What is the name for non-paid active links returned by an Internet search engine in the search results?
    11·1 answer
  • Your company is planning to storage log data, crash dump files, and other diagnostic data for Azure VMs in Azure. The company ha
    12·1 answer
  • Read the citation example, and then use the drop-down menus to identify each part.
    8·2 answers
  • write a program that inputs 3 numbers and prints the largest input must be transformed into a integer but printed as a string​
    11·1 answer
  • Now, we’re ready to program! Leave the visualizer and go back to https://repl.it/ to write your program. Here is the pseudocode
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!