Write a program that asks the user for a sentence and creates a new string based on the input that has all the spaces removed. For example if the user enters: “This is a test” It should output: “Thisisatest”

Answers

Answer 1

Answer:

Here is a Python program that asks the user for a sentence and creates a new string based on the input that has all the spaces removed.

# Prompt the user for a sentence

sentence = input("Enter a sentence: ")

# Create a new string with all the spaces removed

no_spaces = sentence.replace(" ", "")

# Print the new string

print(f"New string: {no_spaces}")

Explanation:

In this program, we first prompt the user for a sentence and store it in the sentence variable. We then use the replace method to create a new string with all the spaces removed. This method takes two arguments: the string to search for (in this case, a space), and the string to replace it with (in this case, an empty string).

Finally, we print the new string that has all the spaces removed. This program allows the user to input any sentence, and creates a new string based on that input that has all the spaces removed.


Related Questions

For the following code and using the help() function of the Atm_Moon class, what method(s) are inherited from Planet?

class SolarSystem:
def __init__(self, name):
self.name = 'Sun'
def show_ss_name(self):
return f'The only star in our solar system is the {self.name}'
class Planet(SolarSystem):
def __init__(self, name):
self.name = name
self.orbits_a_star = True
self.mass_enough_to_form_a_sphere = True
self.cleared_neighborhood_around_orbit = True
def show_name(self):
return f'I am planet {self.name}'
class Atm_Moon(Planet):
def __init__(self, name, atm_type, num_Moons):
super().__init__(name)
self.moons = num_Moons
self.atmosphere = atm_type
def show_moons(self):
return f'I have {self.moons} moons'
def show_atmosphere(self):
return f'My atmosphere is mostly {self.atmosphere}'
P4wAM = Atm_Moon('Mars', 'carbon dioxide',2)

A) self.moons = num_Moons
self.atmosphere = atm_type

B) __init__(self, name, atm_type, num_Moons)

C) __init__(self, name, atm_type, num_Moons)
self.moons = num_Moons
self.atmosphere = atm_type

D) show_name(self)

Answers

Answer:

D) show_name(self)

Explanation:

In the given code, the Atm_Moon class is a subclass of the Planet class. This means that the Atm_Moon class inherits all the attributes and methods of the Planet class, including the show_name() method.

The show_name() method is defined in the Planet class, and it returns a string that includes the name of the planet. When called on an Atm_Moon object, this method will return a string that includes the name of the Atm_Moon object.

To confirm this, you can use the help() function to view the documentation for the Atm_Moon class. This will show you a list of all the attributes and methods that are inherited from the Planet class, including the show_name() method.

Therefore, the correct answer is option D) show_name(self).

given the list nums = [[10, 20, 30], [98, 99]], what does nums[0][0] evaluate to? group of answer choices [10,98] 10 [[10,20,30],98] [[10,20,30],[98,99]]

Answers

Correct! The list generated by nums[1] is [98, 99]. That list's second number, nums[1][1], has a value of 99.

What is num ?

A mathematical quantity or value is referred to by the mathematical term num. It is a key premise in mathematics as well as many other disciplines, such as computer science, physics, and chemistry. Whole numbers, halves, decimal, and even irrational numerals can all be expressed with the word num. Any sort of number, including positively and negativ, integers, real numbers, number theory, and irrational numbers, can be represented by the variable num. Knowledge the fundamental ideas of mathematics and how it is applied in daily life requires an understanding of the concept of num. A number line displays all numbers on it, from negative to positive.

To learn more about num

https://brainly.com/question/28214531

#SPJ4

sensitivity analysis seeks to assess the impact of changes in the input data and parameters on the proposed solution.

Answers

True. Sensitivity analysis is an important tool for understanding how changes in the input data and parameters affect the proposed solution. It is used to identify what inputs or assumptions are most critical to the solution and to assess the impact of changes in the data on the proposed solution. With sensitivity analysis, decision makers can determine which factors need to be taken into account to ensure that the solution is robust and reliable.

The Importance of Sensitivity Analysis in Decision Making

When faced with complex problems, decision makers often rely on sophisticated data-driven models to come up with the best possible solutions. However, the accuracy and reliability of these models can be highly dependent on the quality of the input data and parameters. This is why sensitivity analysis is an important tool for understanding how changes in the inputs and parameters affect the proposed solution.

Sensitivity analysis is a method of assessing the impact of changes in the input data and parameters on the proposed solution. It helps to identify which inputs and assumptions are most critical to the solution and can help decision makers determine which factors need to be taken into account to ensure that the solution is robust and reliable. By carrying out sensitivity analysis, decision makers can understand the implications of different choices and identify those that will yield the best results.

Learn more about Sensitivity analysis:

https://brainly.com/question/28042944

#SPJ4

if we add 100 + 111 using a full adder, what is your output?

Answers

A digital circuit that performs addition is called a full adder. Hardware implements full adders using logic gates. Three one-bit binary values, two operands, and a carry bit are added using a complete adder. Two numbers are output by the adder: a sum and a carry bit. 100 has the binary value, 1100100.  Is your output.

What full adder calculate output?

When you add 1 and 1, something similar occurs; the outcome is always 2, but because 2 is expressed as 10 in binary, we receive a digit 0 and a carry of 1 as a result of adding 1 + 1 in binary.

Therefore, 100 has the binary value, 1100100. As we all know, we must divide any number from the decimal system by two and record the residual in order to convert it to binary.

Learn more about full adder here:

https://brainly.com/question/15865393

#SPJ1

You are given a before condition of ecx register and an instruction. Choose the correct after condition of ecx Before condition of ECX: FF FF FF C8 Instruction: add ecx, 6 After condition of ECX: O FF FF FF CF OFF FF FF CD 00 00 00 CE OFF FF FF CE D

Answers

The condition of ECX value in hex after instruction is FF FF FF CE.

What is hex?

Hex or hexadecimal is a numerical system based on 16 or have 16 symbol which is,

0 1 2 3 4 5 6 7 8 9 A B C D E F

Hex is commonly used in programming language especially in low-level programming language such as assembly language.

The Hex operation have same operation like decimal. So for this case, FF FF FF C8 will be add 6. Mathematically is,

FF FF FF C8 + 6 = FF FF FF CE

Or if you confuse, just count 6 symbol from 8 in the symbol that mentioned above.

Learn more about assembly language here:

brainly.com/question/11207987

#SPJ4

Features of hyperlink

Answers

Answer:

Allows users to click on a specific word or phrase to navigate to a different web page or a specific location on the same page.Can be added to text, images, or other multimedia elements on a web page.Can be used to create a table of contents or index to help users quickly find specific information on a long web page.Can be used to create a navigation menu to help users move between different pages on a website.Can open in the same or a new window or tab.Can be used to create a drop-down menu of options or a pop-up window with additional information.

________ allows network administrators to break up a single network address into smaller network addresses, creating router-connected network segments, all with their own unique network address space.

Answers

Network administrators can divide a single network address using subnetting to create router-connected network segments that each have their own distinct network address space.

How do networks work?

Computers, servers, network infrastructure, and other specialist or general-purpose hosts can all function as node in a computer network. They can have hostnames and are identifiable via network addresses. After being assigned, hostnames act as identifiable labels again for nodes and are rarely updated. Network addresses are used by communication protocols like the Internet Protocol to locate and identify the node. Computer networks can be classified using a variety of factors, including the signal transmission medium, bandwidth, communications protocols used it to organize network traffic, network size, topology, traffic control system, and organizational goals.

To know more about network
https://brainly.com/question/29350844
#SPJ4

what is the purpose of a digital signature?

Answers

Answer:

A digital signature is a mathematical algorithm that is used to verify the authenticity and integrity of a digital message or document. It is a digital equivalent of a handwritten signature, and it serves the same purpose: to provide evidence that the message or document comes from a specific sender, and that it has not been altered in transit.

The purpose of a digital signature is to provide a secure and reliable way to verify the identity of the sender of a digital message or document, and to ensure that the message or document has not been tampered with. It allows the recipient of the message or document to trust that it is genuine and unaltered, and that it comes from the claimed sender.

Digital signatures are commonly used in a wide range of applications, including financial transactions, online voting, and legal contracts. They provide a powerful tool for ensuring the security and integrity of digital communications, and are an essential part of many online systems.

Digital signatures produce a specific virtual fingerprint to protect users' identities and information in digital messages.

These signatures establish legitimacy by guaranteeing information was by the signer and not altered. Modification of the signed data causes the signatures to be invalid.

Integrity, authenticity, and non-repudiation are digital signatures' information security objectives.

Examples are a wet signature scanned by a machine and put into a document, email signatures at the bottom of the message, or the terms and conditions during installation.

find the code that initializes the address data structure. copy-paste these into the client-tcp.cpp c source code file at the step

Answers

The code that initializes the address data structure:

// Initialize address data structure

struct sockaddr_in addr;

addr.sin_family = AF_INET;

addr.sin_port = htons(PORT_NUMBER);

addr.sin_addr.s_addr = INADDR_ANY;

What is data structure?

Data structure is the arrangement of data elements in a particular format in order to facilitate efficient access and modification. It is a way of organizing data so that it can be used effectively. Data structures are used by programs to store and manage data efficiently. They are used in a variety of ways, from organizing information in databases and spreadsheets, to helping computers quickly access memory locations. By using data structures, programs can effectively store, access, and manipulate data. Common data structures include arrays, linked lists, stacks, queues, trees, graphs, and hash tables.

To learn more about data structure
https://brainly.com/question/24268720
#SPJ4

Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The population growth is calculated by: Final population = Initial population* (1 + Rate of growth)Number of years Your Function B Save C Reset I a MATLAB Documentation 1 % Create a function name "CalculatePopulation (O" to calculate the population. 3 function final Population = CalculatePopulation (initialPopulation, growthRate, numberYears ) 5 % Assign final Population with the population size given an 7 % initial population, population growth rate , and number of years 9 finalPopulation = initiatPopulation * ((1 + growthRate).numberYears); 10 11 12 13 % Call the function "calculatePopulation()" to findd the final population. 14 15 S=sprintf('Final population = f ", CalculatePopulation (10000, 0.06, 20) ); 16 17% Display the final population. 18 19 disp (S) 21 % Call the function "calculatePopulation()" to findd the final population. 23 S=sprintf('Final population = f ", CalculatePopulation (10000, 0.40, 10)); 25 % Display the final population.

Answers

The assigned function will be:

function finalPopulation = CalculatePopulation(initialPopulation, growthRate, numberYears)

format long g

finalPopulation = initialPopulation * (1 + growthRate)^numberYears;

end

What are computer functions and their various types?

A function is a derived type because the type of the data it returns determines its type. Arrays, pointers, enumerated types, structures, and unions are the other derived types. _Bool, char, int, long, float, double, long double, complex, etc. are examples of basic types.

A relation between a collection of inputs and outputs is known as a function. A function is, to put it simply, a relationship between inputs in which each input is connected to precisely one output.

There are many different functions, and they are arranged in accordance with their objectives. For instance, the Excel formula "=SUM(A1:A10)" performs the addition of all the numbers in the specified range of cells.

Learn more about functions on:

https://brainly.com/question/20476366

#SPJ1

With which feature or menu option of a word processing program can you make an image like this?

Answers

Answer:

The physical benefits include the following except

Write a function called check_inventory(inventory, low) that has as arguments a dictionary inventory containing the inventory of a fruit store, and low, an integer. The function returns a list of items that are below an inventory level that is given by the low integer parameter. Example: If the inventory is {'mango:22', 'banana':3,'apple':10}, check_inventory(inventory, 5) will return the list ['banana']. For the same inventory, check_inventory(inventory, 15) will return the list ['apple', 'banana']. Save & Run Load History Show CodeLens 1 # Write your code here Nm

Answers

CODE

def check_inventory(inventory, low):
   low_items = []

for item in inventory:
     if inventory[item] < low:
       low_items.append(item)
return low_items

Hence , it will return the low_items as output.

For loop: What is it?

A for-loop or for repeat is a control flow declaration used to indicate iterative process in computer science. A for loop specifically works by constantly running a portion of code until a specific condition is met. For-loops consist of a body and a header. The code that's also run once each loop is contained inside the body and is defined in the header. A loop number or loop variable is frequently explicitly declared in the header. The body can determine which repetition is being performed thanks to this. Whenever the amount of iterations is known prior entering the loop, for-loops are frequently utilized.

To know more about FOR loop
https://brainly.com/question/14390367

#SPJ4

there is substantial evidence that neanderthals hunted big game. identify the evidence that supports big-game hunting by neanderthals.

Answers

Here we identify the evidence that supports big-game hunting by neatherland.

What is scientific evidence?

Scientific evidence is evidence that serves to either support or counter a scientific theory or hypothesis, although scientists also use evidence to the  in other ways, such as when applying theories by practical problems.

There is substantial evidence that Neanderthals hunted big game. Identify the  the evidence that supports to  big-game hunting by Neanderthals. The fossil by  assembla

ges of animal of  bones at Neanderthal sites by the  are not random. To the  nitrogen ratios in Neanderthal fossils suggest that Neanderthals are meat.

To know more about evidence click-

https://brainly.com/question/507522

#SPJ4

you are troubleshooting a client's wireless networking issue. which of the following will prevent the client from connecting to the network?

Answers

The security key is the password used to access a wireless network. If the client is using the wrong security key, they will not be able to connect to the network. Without the correct security key, the wireless network is essentially locked, and no device can access it.

Which of the following will prevent the client from connecting to the network?

Option A. Incorrect security key

The incorrect security key is one of the most common causes of a wireless network not connecting. Without the correct security key, the wireless network is essentially locked, and no device can access it. The security key is the password used to authenticate and validate a connection to the wireless network, and if the wrong key is entered, the network will not accept the connection request. It is important to ensure that the correct security key is entered in order to connect to the network, as entering the wrong key will prevent the client from connecting to the network.

Since the question is not complete, here's the full task:

You are troubleshooting a client's wireless networking issue. Which of the following will prevent the client from connecting to the network?

A. Incorrect security keyB. Incorrect SSIDC. Wrong encryption typeD. Interference from other devices

Learn more about Networking: https://brainly.com/question/8118353

#SPJ4

the technologies for cable television were initially developed as catv as a way of doing which of the following?

Answers

The technologies for cable television were initially developed as catv as a way of delivering broadcast television signals to communities with poor reception.

What is a cable television?

Radio frequency (RF) signals are transmitted through coaxial cables in the cable television system, or in more recent versions, light pulses are transmitted through fiber-optic cables to deliver television programming to viewers.

In contrast, broadcast television uses radio waves to transmit the television signal over the air, where it is picked up by an antenna attached to the television, while satellite television uses radio waves from a communications satellite orbiting the Earth to transmit the television signal over the air, where it is picked up by a satellite dish antenna on the roof.

Through these cables, other non-television services, such as telephone, high-speed Internet, and FM radio programming, may also be delivered. In the 20th century, analog television was common, but since the 2000s, cable systems have been upgraded to digital cable operation.

Learn more about cable television

https://brainly.com/question/1493168

#SPJ4

What is output by the following code? Select all that apply.

c = 2

while (c < 12):

print (c)
c = c + 3

answers possible

3

4

6

7

9

2

10

5

12

8

1

11

Answers

Answer:

........................... ...it is 5

What formatting changes do spreadsheet applications permit in the rows and columns of a spreadsheet?

Answers

Answer: There are manny ways, best is to extract a document from excel sheets and change the spreadsheet to a number to organise it.

Message: If this was helpful, let me know by giving me a thanks! :)

what code for xxx, yyy, zzz returns true if the string s has no periods? choices are listed as xxx / yyy / zzz. bool hasnoperiods(string s) { int i; bool noperiods xxx; for (i

Answers

Xxx code for xxx,yyy,zzz returns true if the string s has no periods.

What is code?

Code in mathematics is a series of the independent standalone modeluss to that is use coding to reinforcement and extended by to the students understand of the math, as the students learning major programing concept,they will development math-related to the projects that is demonstrated their proficiency by the math and to the computer science.

Inte What code for XXX, YYY, ZZZ returns true if the strings has no periods. Choices are listed as XXX / YYY / ZZZ. bool HasNoPeriods(strings) bool noPeriods xxx for (i = 0; i <s. length): ++) { if (s.at(i) - YYY else ZZZ return noPeriods: O a.

To know more about code click-

https://brainly.com/question/25976025

#SPJ4

This character is one that appears at the end, or right side, of a string, after the non-space characters:
a. Leading whitespace
b. Carriage return
c. Trailing whitespace
d. Line feed

Answers

Trailing whitespace is one that appears at the end, or right side, of a string, after the non-space characters.

What is Trailing whitespace?

Any spaces or tabs that follow the last non-whitespace character on the line until the newline are considered trailing whitespace.

A few months ago, it came to light that code submitted for PRs frequently includes trailing whitespace changes along with other "real" code changes in the code diff. In this whitespace change, the existing code had one or more trailing whitespaces removed.

When we saved the file, we discovered that the editors we were using were automatically removing trailing whitespaces that were already present in the code.

The agreed-upon result was:

Change this automatic feature to off.If necessary, commit the changes to remove the trailing whitespace separately.

Learn more about trailing whitespace

https://brainly.com/question/29556988

#SPJ4

provides high-speed connections to the Internet profiting from television distribution infrastructure.

Answers

An Internet service provider (ISP)  provides high-speed connections to the Internet profiting from television distribution infrastructure.

Describe an ISP and its parts?

Internet service providers (ISPs) are businesses that give people and organizations access to the internet and other associated services.

In order to establish a point of presence on the internet for the region they service, an ISP needs access to the necessary hardware and telecommunications lines. Those who offer internet access for a monthly charge are known as internet service providers (ISPs).

Therefore, Cable and DSL are the two primary ISP configurations. Other kinds do exist, albeit they frequently occur in more isolated areas. There are numerous neighbors using cable connections, which may slow down cable access. DSL connections, which link a DSL router to a phone jack or phone cable, are available from telephone service providers.

Learn more about Internet service provider from

https://brainly.com/question/27118899
#SPJ1

This device is not working properly because Windows cannot load the drivers required for this device. (Code 31) -----> this is the message shown after i try to update my wifi in my Aspire 4741Z laptop,.... can you help me with that??

Answers

Unfortunately, this is an issue that is best handled by a professional. We recommend that you contact your laptop's manufacturer or a certified IT technician to help you troubleshoot the issue and determine if any hardware repairs or driver updates need to be made.

What is driver?

A driver is a type of software that enables a computer, device, or application to communicate and interact with a hardware component. Drivers act as a translator between the operating system and the hardware component, allowing the software to control the device and provide access to its features. Most hardware components require a driver in order to function properly, as the driver is responsible for managing the data that is transferred between the component and the operating system. Without the proper driver, a device may not be able to connect properly or may not work at all.

To learn more about driver
https://brainly.com/question/23611828
#SPJ4

construct a row array countvalues from startvalue to endvalue, elements decremented by -2 end ex: if startvalue is 10 and endvalue is 0, countvalues should be [10, 8, 6, 4, 2, 0].

Answers

To construct a row array countvalues from startvalue to endvalue, elements decremented by -2 end ex: if startvalue is 10 and endvalue is 0, countvalues should be [10, 8, 6, 4, 2, 0] check the code given below.

What is an array?

A collection of elements (values or variables) is referred to as an array in computer science. Each element is identified by at least one array index or key. An array is stored so that a mathematical formula can be used to determine each element's position from its index tuple. A linear array, also known as a one-dimensional array, is the simplest type of data structure.

Almost every program uses arrays, which are among the most well-known and significant data structures. Many other data structures, including lists and strings, are implemented using them as well. They successfully abuse the way computers handle addresses. A one-dimensional array of words with addresses as their indices makes up the memory in the majority of contemporary computers and many external storage devices.

↓↓//CODE//↓↓

function countValues = CreateArray(startValue, endValue)

%startValue: Start value of array.

%endValue: Ending alue of array.

   %Construct a row aray countValues from startValue

   %to endValue, elements decremented by -2

   countValues = 0;

   j = 1;

   for i = startValue : -2 : endValue

       countValues(j) = i;

       j = j + 1;

   end

end

Learn more about array

https://brainly.com/question/28061186

#SPJ4

Write a program by java script that asks the user for an even number. It then continues to halve the number (printing the result of halving) until it becomes an odd number. For example, if the user gives 1000, your program should output: 500, 250, 125

Answers

A program by Java Script that executes the above function is given as follows:

function halveUntilOdd(n) {

 // keep halving the number until it becomes odd

 while (n % two === zero) {

   n = n / 2;

   console.log(n);

 }

}

//request an even number from the user

let n = prompt("please type an even integer:");

// make sure the number is even

if (n % two === zero) {

 halveUntilOdd(n);

} else {

 console.log("The number you entered is not even. Please try again.");

}

What is Java?

Java is a popular object-oriented computer language and software application that is utilized on billions of devices such as laptop computers, portable devices, gaming consoles, medical equipment, and many more.

The Java programming language arose from a research endeavor to provide powerful software for a wide range of network connections and embedded systems. The objective was to create a lightweight, dependable, portable, networked, real-time operating platform.

Learn more about Java:
https://brainly.com/question/25458754
#SPJ1

In long data, separate columns contain the values and the context for the values, respectively. What does each column contain in wide data?
A unique format
A unique data variable
A specific data type
A specific constraint

Answers

In wide data, each column contains a unique data variable, with a specific data type and constraints associated with it.

What does each column contain in wide data?

A unique data variable.

Wide data is organized in a way that each column contains a single data variable, which comprises a specific data type and associated constraints. This allows for data to be stored in a more organized and efficient manner, as each column is dedicated to a single variable and the associated data type and constraints remain consistent throughout the entire dataset. The wide data structure allows for quick retrieval of data, making it an ideal format for data analysis and manipulation.

Learn more about Wide Data: https://brainly.com/question/518894

#SPJ4

an easy way to log the progress of an application in chrome's console panel is to insertanswer methods at critical points in the code.

Answers

You can use your log() method to log messages in the console.

What do you mean by console?

Console is a type of user interface used to interact with a computer system. It allows users to enter commands, view output, and interact with a system in text-based form. It is typically used to access programs, run diagnostics, and debug software

Console typically refers to the input/output device used to interact with a computer system. It usually consists of a keyboard and a monitor, but can also include other input/output devices such as a mouse or joystick.

For example, you can log messages to show application progress and help you debug errors. You can also use the console.warn() and console.error() method at critical point in the code.

To learn more about console
https://brainly.com/question/27031409
#SPJ4

list at five emergency technology in health care with in it's factions​

Answers

Answer:

1.Predictive Analytics to Minimize Outbreaks

2. Telehealth to Streamline Care Coordination

3.Satellite Mapping to Determine Disaster Areas

4. Chatbots to Help Treat Symptoms at Home

5. E-Triage Systems for Better Resource Allocation

Explanation:

Hope it helps have a good day:D

which of the following is a technique that disperses a workload between two or more computers or resources to achieve optimal resource utilization, throughput, or response time?

Answers

Load balancing is a technique that disperses a workload between two or more computers or resources to achieve optimal resource utilization, throughput, or response time.

What is Load balancing?

In computer science, load balancing is the process of distributing a set of tasks over a set of resources (computing units) in an effort to increase the processing speed of those tasks as a whole. Response times can be sped up by using load balancing to prevent unevenly overloading some compute nodes while leaving others idle.

In the field of parallel computers, load balancing is being studied. There are two primary approaches: static algorithms, which do not consider the state of the various machines, and dynamic algorithms, which are typically more general and more efficient but necessitate information exchanges between the various computing units at the risk of decreased efficiency.

Learn more about load balancing

https://brainly.com/question/28044760

#SPJ4

What is output by the following code?

c = 1

sum = 0

while (c < 10):

c = c + 2

sum = sum + c




print (sum)

Answers

Answer:

C2 answer answer answer

Question 19
2 pt
What is the difference between plugins and widgets? Explain with
the help of an example

Answers

I don’t know sorry .Lms dat answer tho

[30 points] question 3 write a function called check inventory(inventory, low) that has as arguments a dictionary inventory containing the inventory of a store, and low, an integer. the function returns a list of items that are below an inventory level that is given by the low integer parameter. case: if the inventory is {'ibuprofen':800,'tylenol':366,'advil':75}, check inventory(inventory, 100) will return the list ['advil']. for the same inventory, check inventory(inventory, 400) will return the list ['tylenol','advil']. example: inventory

Answers

To write a function called check inventory(inventory, low) that has as arguments a dictionary inventory containing the inventory of a store, and low, an integer check the program given below.

What is an program?

Programs are a predetermined collection of algorithms or procedures that are carried out in order to accomplish a task in computing.

When writing code for a program, a computer programmer uses a programming language that the computer can comprehend. Whether it's using Mozilla Firefox to browse the web or Microsoft Word to process documents, every action a computer takes is made possible by a program. Examples of software include Word and Firefox.

Computer programming is the process of creating code that facilitates and directs specific actions in a computer, application, or software program. Professionals who write and test the code that makes it possible for software and applications to operate successfully are known as computer programmers.

↓↓//Program//↓↓

#function that takes in a dictionary and an integer

def check_inventory(inventory, low):

   #result is an empty list

   result = []

   #traversing dictionary

   for i in inventory:

       #if value at i is less than low

       if inventory[i]<low:

           #appending it to result list

           result.append(i)

   #returning result

   return result

#testing code

inventory = {'ibuprofen':800, 'tylenol':366, 'advil':75}

print(check_inventory(inventory,100))

print(check_inventory(inventory,400))

Learn more about Program

https://brainly.com/question/26134656

#SPJ4

Other Questions
write an equation using slope intercept form 4,-1 and 0,1 Winston prepared two pies and put them next to each other in the oven. The pies were identical, but one was in a glass pie pan and one was in a ceramic pie pan. This table shows how the temperature of each pie changed over 20minutes.Pie Initial temperature (C) Final temperature (C)Pie in the glass pan 23 52Pie in the ceramic pan 25 54The next time Winston puts a pie in the oven, he wants the pie to warm up quickly. What should he do to maximize the rate of thermal energy transfer into the pie? find the length and the slope of each side of the triangle below. then, find the coordinates of the midpoint of each side. when the slope is undefined, write undefined in the response box. What is the difference between nerves and tracts? At which stage of the general adaptation syndrome does the body attempts to repair any damage and return to a condition of stability and equilibrium? The sequence of questions on a poll can influence responses. These are called________. a body is a particular amount of matter. it can be a solid, liquid or gas. it can be described as existing in question 2 options: a) motion and force. b) size and shape. c) time and space. d) location and movement. Why did Islam spread so quickly in North Africa? Please help meee !!!!! which of the following observations is true? group of answer choices a larger market share, gained at whatever price, leads to sustainable competitive advantage sales growth essentially means bigger profits market share objectives are not popular among modern managers market share objectives and straight sales growth objectives have similar limitations When a firm has financial leverage:A. ROI will be greater than ROE.B. ROI will usually be less than it would be without leverage.C. risk is greater than if there wasn't any leverage.D. the firm will always have a higher ROE than it would without leverage. A marine biologist is studying the growth of a particular species of fish. She writes the following equation to show the length of the fish, f(m), in cm, after m months:f(m) = 3(1.09)mPart A: When the marine biologist concluded her study, the length of the fish was approximately 5.98 cm. What is a reasonable domain to plot the growth function? (4 points)Part B: What does the y-intercept of the graph of the function f(m) represent? (2 points)Part C: What is the average rate of change of the function f(m) from m = 2 to m = 8, and what does it represent? (4 points) the line voltage in the united states is 120vac rms. the actual peak-to-peak voltage present on the line is: What is the internal motion of particles called? What is the easiest way to transport food? what graph represents the function f(x) = 43^x What is the purpose of the hypocrisy of American slavery? Who ruled after Akbar?help me a dependency is a trigger that enables a project manager to close the project before completion. group of answer choices true false When shares of stock held as an investment are sold, the difference between the proceeds and the balance of the investment account is recorded asa(n)Oa. operating income and lossesOb. paid-in capital additionOc. prior period adjustmentOd. gain or loss?