Write the code for a mapping that generates a list of the absolute values of the numbers in a list named numbers.

Answers

Answer 1

Answer (python):

mixednumbers = [49.5,  -2,  -54.5, -87.6,  17.3,  92,  -1.4,  47.7, -27.4, -31.8]

numbers = []

def absolute(num):

 num = abs(num)

 return num

mappednumbers = map(absolute, mixednumbers)

for i in mappednumbers:

 numbers.append(i)

print(numbers)

Explanation (in line numbers):

1 provides the numbers that we will work with in an array called mixednumbers

2 creates an empty array called numbers where we will store the result

4-6 create a function that will take a number, get the absolute value of it, then return it

8 is where we use our function and mixednumbers to create a map named mappednumbers (it contains the numbers in absolute value)

10-11 take each item in the map and append it to our numbers array (printing the map directly will give us a memory address)

12 prints the numbers array, giving us our solution

Output:

[49.5, 2, 54.5, 87.6, 17.3, 92, 1.4, 47.7, 27.4, 31.8]


Related Questions

Select the three areas in which it would be most important for an instructional designer to be trained. psychology psychology computer applications computer applications educational theory educational theory business management business management sales and marketing sales and marketing]

Answers

The three areas in which it would be most important for an instructional designer to be trained are Psychology, Educational Theory and Computer applications.

Here is why those areas are important

Psychology: Understanding how people learn and how to design instruction that meets their needs is essential for instructional designers. Knowledge of cognitive psychology, educational psychology, and human development can inform the design of effective learning experiences.

Educational theory: Instructional designers need to have a solid foundation in educational theory to understand the principles of effective teaching and learning. Knowledge of learning theories, instructional design models, and assessment and evaluation can inform the design of instruction that is effective and meaningful.

Computer applications: As technology becomes increasingly important in education, instructional designers need to have a strong understanding of computer applications and programming languages. This can include software for creating and editing multimedia, learning management systems, and programming languages for creating interactive and engaging learning experiences.

Learn more about instructional designer here:

https://brainly.com/question/31104154

#SPJ1

which task would a database administrator preform?

Answers

Sr I don’t know what about it today lol but it’s just a weird thing about to be with my buddy who knows what to say lol

Answer: Make sure protocols are in place and are being followed.

Explanation: Good luck! Hope this helps!

what is the password based off of the clues

Answers

Answer:

i would say Plane, if not then Plane then the person's birthdate.

Explanation:

The Western Siberian Plain is __________ in some places because it has poor natural draining systems.

Answers

This is the complete sentence about the Western Siberian Plain:

The Western Siberian Plain is marshy in some places because it has poor natural draining systems.

What is the Western Siberian Plain?

The Western Siberian Plain is a plain that is located in the western part of Siberia and which is known because most of the plain is poorly drained and it is considered one of the largest swamps and floodplains of the world.

This is why the correct word to complete the sentence about the Western Siberian Plain is "marshy".

Check more information about the Western Siberian Plain here https://brainly.com/question/14478489

#SPJ1

Calculate the standard deviation for the following data set: Data set: 4, 14, 6, 2, 7, 12

Answers

Answer:

4.2328083664001

Explanation:

standard deviation is the square root of the variance. It is one of the measures of dispersion, that is a measure of by how much the values in the data set are likely to differ from the mean

Standard deviation formulas

The formula for the standard deviation of a sample is:

$ s =\sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i-\bar{x})^2$

where n is the sample size and x-bar is the sample mean.

The formula for the standard deviation of an entire population is:

$ \sigma =\sqrt{\frac{1}{N} \sum_{i=1}^N (x_i-\mu)^2$

where N is the population size and μ is the population mean.

Which of the follow best describes the difference between local and global variables? A. global variables require the keyword var when created; local variables can be created without the use of the var keyword B. global variables are only used inside an onEvent( ); local variables are only used outside an onEvent( ) C. global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where it was created D. local variables are permanent and can be used anywhere in your code; global variables are temporary and can only be used where it was created

Answers

The difference is: C. global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where it was created.

What is a variable?

A variable simply refers to the specific name which points to a location in computer memory, and it's typically used for storing a value such as an integer.

In Computer technology, there are two main types of variables and these include the following:

Global variablesLocal variables

Basically, a difference between local and global variables is that global variables are permanent and can be used anywhere in your code while local variables are temporary and can only be used where it was created.

Read more on global variables here: https://brainly.com/question/15876187

#SPJ1

A class that implements an interface must provide an implementation for all ____ methods. Group of answer choices private final static abstract

Answers

Answer:

Abstract

Explanation:

I think it’s abstract because, in the question it says that it implements an interface and must provide an implementation for

And my answer was abstract methods.

A person who works full time for a power company is concidered a consultant

Answers

Answer:

It will depend on your employer. Many will have a clause in the employment agreement limiting or prohibiting outside work without permission, especially in the same field. You’ll also need to think about the logistics of trying to juggle both sets of responsibilities. It’s going to be hard to sell work as an independent consultant if you can’t meet with or speak to clients during business hours, when you’d presumably be at your full-time job. Likewise, if you need to visit the client site to do your consulting work, how would you do that while working full-time? I can’t think of a lot of consulting opportunities that you could do entirely in the evenings or on weekends, and I don’t think your boss at your full time job would allow you to field calls for your own outside business at work.

When I started out in consulting, I moved from a job at a large university, where I was also teaching a class. I agreed to do essential work for my old boss as a consultant at night and on weekends until they could hire a replacement. After a few weeks on the job, I casually mentioned this to my supervisor at the new job, who showed me the clause in the employment handbook that didn’t allow me to consult for anyone else while employed there. I had to end that arrangement. However, the consulting firm was fine with my continuing to teach at the university, as they didn’t consider that a conflict

Answer:

False

Explanation:

They would be called an employee.

3. technologies such as _____, computers, networks, and the internet and world wide web enable us to communicate globally.

Answers

Technologies such as collaborative documents, computers, networks, the internet, and the world wide web enable us to communicate globally.

What is Technology?

Technology may be characterized as the application of scientific understanding to the reasonable purposes of human life and make it easy.

Collaborative documents assist the member of the wikis to assemble a lot of information in a very short period of time globally. It is easily accessed by all users to gain knowledge and information reserved by a community of people.

Therefore, technologies such as collaborative documents, computers, networks, the internet, and the world wide web enable us to communicate globally.

To learn more about Technologies, refer to the link;

https://brainly.com/question/25110079

#SPJ1

True or False: Neural Networks are the most extensible model and therefore the best choice for any circumstance.

Answers

Neural Networks are the most extensible model and therefore the best choice for any circumstance is a true statement.

What are neural networks?

This is known to be network that helps to process a lot of sequences of information side by side.

Note that Neural Networks are said to be the most extensible model and therefore the best choice for any circumstance is a true statement.

Learn more about neural networks from

https://brainly.com/question/27371893

#SPJ4

1. Which of the following CAN NOT be considered as information? (1) The average height of students in a class.
(2) The total sales of a company for the month of May.
(3) The body temperature of a patient.
(4) The number of copies of a book sold at the end of the day. (5) Literacy rate of a country.

Answers

Answer:

Explain three most significant features of computer

Php code can be placed anywhere within the html markup

Answers

Php code can be placed anywhere within the html markup as A PHP script can be inserted into the document at any point. ". php" is the default file extension for PHP files.

How to use Php code?

As you can see, you can use any HTML you want in your PHP code without doing anything unique or extra, as long as it's outside of the PHP tags. To put it another way, if you want to incorporate PHP code into an HTML file, you can put it anywhere (as long as it's inside the PHP tags.

HTML tags and PHP scripting code are commonly found in PHP files.

Read more about the code :

https://brainly.com/question/25689052

#SPJ4

The _____ is the name we give to the huge network of interconnected computers that collectively form this entity

Answers

Answer:

Internet

Explanation:

What is the digital revolution and how did it change society?

Answers

Answer:

The Digital Revolution (also known as the Third Industrial Revolution) is the shift from mechanical and analogue electronic technology to digital electronics which began in the later half of the 20th century, with the adoption and proliferation of digital computers and digital record-keeping, that continues to the present day.

The "digital revolution" is impacting everything, from economy, innovation, science and education, to health, sustainability, governance, and lifestyles. Digital technologies will fundamentally change business models, institutions and society as a whole, as new ecosystems emerge.

Explanation:

4.8.4 Better Sum
Write a program that asks the user for two numbers. Using a for loop, add all of the numbers from the first to the second.


For example if the first number is 6 and the second number is 8 the result is 21 (6 + 7 + 8).


Print out the results when you are finished.

write in python

Answers

import sys

x = input("enter number 1: ") #ask for user input

y = input("enter number 2: ")

output = "" #the output string

try: #try integering them (this also has error message and will check if input is valid)

x = int(x)

except:

print("error! number 1 was not a number :(")

sys.exit() #leave

try:

y = int(y)

except:

print("error! number 2 was not a number :(")

sys.exit()

if x == y: #check they are not the same

print("both numbers are the same")

else: #do the thing

if y > x: #otherwise swap the order

for i in range (x, y + 1): #+1 for inclusive

output = (output + str(i) + " ")

else:

for i in range (y, x + 1):

output = (output + str(i) + " ")

print(output) #so it's all in one line

What is a client benefit of partnering with accenture's intelligent platform services
(ips)?

Answers

The client benefit of partnering with Accenture's intelligent platform services (ips) is that it boosts a business’s unused capabilities and takes advantage of its current resources.

How can an Accenture Intelligent Platform services IPS help the client?

Accenture's Intelligent Platform Services (IPS) helps clients in taking a decision to partner with other services company.

Note that Accenture often assist its customer via the implementation of a system that will bring out operational efficiency and opportunities for growth while using existing resources.

See options below

1)It shifts responsibility for business functions to externally hired resources.

2)It decreases costs by reducing the purchase and maintenance of equipment.

3It boosts a business’s unused capabilities and takes advantage of its current resources.

4)It eliminates data breaches and cybercrimes with its advanced security features.

Learn more about Accenture from

https://brainly.com/question/25682883

#SPJ1

Sanjay is compressing several images from a recent photo shoot during the editing process. What will this do to the pixels

Answers

Based on the fact that he is compressing a lot of images from a photo shoot, the pixels size will be reduce.

What is Pixels?

This is known to be a term that connote a little single colored, light-sensitive squares, or picture elementary , that is said to be a full digital image file.

Based on the fact that he is compressing a lot of images from a photo shoot, the pixels size will be reduce.

Note that also individually the photo will have small pixel but collectively, the pixel size will increase but since it will undergo edit, it will reduce.

Learn more about pixels from

https://brainly.com/question/9017156

#SPJ4

Which technique is best for determining the validity of an id?.

Answers

A technique which is best for determining the validity of an ID is comparing the signature on the ID to a fresh signature given by the ID holder.

What is validity?

Validity is a terminology which is used to determine that there are no errors in a given data set, and that the variables of a data set adheres to the specified standards.

In this scenario, a technique which is best for determining the validity of an ID is to compare the signature on the particular ID to a fresh signature given by the ID holder.

Read more on validity here: https://brainly.com/question/27138101

#SPJ1

(Synchronized threads) Write a program that launches 1000 threads. Each thread adds a random integer (ranging from 1 to 3, inclusive) to a variable sum that is initially 0. You need to pass sum by reference to each thread. In order to pass it by reference, define an Integer wrapper object to hold sum. Run the program with and without synchronization to see its effect.

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that organizes and synchronizes the programs that will run on the computer.

Writting the JAVA code as:

import java.util.concurrent.ExecutorService;

import java.util.concurrent.Executors;

public class Main

{

Integer sum=new Integer(0);

Main(){

ExecutorService e=Executors.newFixedThreadPool(1000);

final Sum s = new Sum();

for(int i=0;i<1000;i++){

e.execute(s);

}

e.shutdown();

while(!e.isTerminated()){

}

System.out.println(sum);

}

public static void main(String[]args){

new Main();

}

class Sum implements Runnable{

public void run() {

m();

}

public void m(){

sum=sum+1;

}

}

}

See more about JAVA at brainly.com/question/12978370

#SPJ1

What are the options for video playback in a PowerPoint presentation? Check all that apply. looping the video adjusting the volume trimming and adding fades starting the file automatically rerecording sections of the file rewinding the file automatically

Answers

Answer:

loop feature

Explanation:

What are the options for video playback in a PowerPoint presentation? Check all that apply. looping the video adjusting the volume trimming and adding fades starting the file automatically rerecording sections of the file rewinding the file automatically

Answer:

a,b,c,d,f

Explanation:

Fiona was talking to her colleagues about how advancements in digital technology had a negative effect on her life. Which aspect of her

life would Fiona consider to be a negative effect of digital technology?

Answers

The aspect of her life that Fiona consider to be a negative effect of digital technology are:

Her eye sight.Difficulty focusing on vital tasks.Skin as a result of exposure to radiation from tech.

What are the negative effects of digital technology?

The  us of the  Social media and mobile devices are known to lead to a lot of psychological and physical issues, e.g. eyestrain

Note that they may in turn have effect such as serious health conditions, such as depression due to its overuse.

Therefore, The aspect of her life that Fiona consider to be a negative effect of digital technology are:

Her eye sight.Difficulty focusing on vital tasks.Skin as a result of exposure to radiation from tech.

Learn more about technology from

https://brainly.com/question/25110079

#SPJ1

Answer:

B. playing a computer game with many friends.

Explanation:

why should you delete files from your computer

Answers

deleting files can free up space and prevent hackers from accessing your sensitive files

Answer:

Why should you delete files from your computer

Explanation:

You should delete files permanently from your computer because removing that data completely opens up space on your hard drive and improves overral PC performance

In data communication, convergence refers to integrating voice, video, and data so that multimedia information can be used for decision making. True or False

Answers

In data communication, convergence refers to integrating voice, video, and data so that multimedia information can be used for decision making is true.

What is Convergence in Networking?

Convergence in networking is known to take place if one network provider gives networking services in terms of voice, data, and video in only one network offering.

Note that In data communication, convergence refers to integrating voice, video, and data so that multimedia information can be used for decision making is true.

Learn more about communication from

https://brainly.com/question/26152499

#SPJ4

How does adding inputs to a custom function improve a computer program?
A. It makes the result of every run of the program a surprise.
B. It makes the algorithm's output more predictable and reliable.
C. It allows one module to be easily customized for different
situations.
D. It causes the behavior to repeat forever, or for a set number of
cycles.

Answers

By adding inputs to a custom function,  It allows one module to be easily customized for different situations.

What is the use of custom function?

Custom functions, is known to be used as Java methods, as it helps one to be able to extend the power and functionality of their Liquid Data.

Note that By adding inputs to a custom function,  It allows one module to be easily customized for different situation because it uses one input at a time.

Learn more about computer program from

https://brainly.com/question/1538272

#SPJ1

The spelling checker included with word processing software compares words in a document with an electronic dictionary that is part of the operating system. Group of answer choices True False

Answers

Answer:

True

Explanation:

IF you go onto word you can see "add to dictionary" and you can also look up definitions that pull up a online dictionary, proving my point.

4. Are instructions designed to ensure that your manufacturing processes are consistent, timely and repeatable.
A. Management
B. Quality
C. SOP
D. SWI

Answers

Answer:

SWI

Explanation:

SWI (Standardized Work Instructions) are instructions designed to ensure that your manufacturing processes are consistent, timely and repeatable

In the __________ phase of the SecSDLC, the team studies documents and looks at relevant legal issues that could affect the design of the security solution.

Answers

In the Analysis phase of the SecSDLC, the team studies documents and looks at relevant legal issues that could affect the design of the security solution.

What is this stage about?

This is known to be the phases of development where there is  Analysis or one can say requirements gathering and where one has clearly set out problem or project as well as others.

Note that In the Analysis phase of the SecSDLC, the team studies documents and looks at relevant legal issues that could affect the design of the security solution.

Learn more about Analysis phase from

https://brainly.com/question/13897351

#SPJ1

When will your stony brook email address become your default or preferred email address for official stony brook communications?.

Answers

The stony brook email address will become the default or preferred email address for official stony brook communications as from Aug. 14.

What is the email about?

This is known to be the primary campus email address.

Note that it is the address that the University sends official email notifications and it is said to become the 'preferred' or the default or preferred email address for official stony brook communications as from Aug. 14.

Learn  more about a email from

https://brainly.com/question/24688558

#SPJ1

what would the input, process, outcome and feedback be for a class assignment

Answers

no sé hablar inglés tu pregunta no entiendo

When an interviewer asks "tell me about yourself", you should tell them about your childhood past. please select the best answer from the choices provided t f

Answers

In the interview when the candidate is asked about yourself then telling about childhood past is not correct. Therefore the given statement is false.

What is an interview?

An interview is an interaction or a conversation between an employer and the interested candidate. In the conversation the interviewee is asked about their education, family background, and work experiences.

When an interviewer ask about tell me about yourself, then the interviewee should not tell about their childhood past, rather the interviewee should give few information about their family, education, and working.

Therefore, the given statement is false.

Learn more about interview, here:

https://brainly.com/question/13073622

#SPJ1

Other Questions
Which arrow represents the change of state describedabove?MNP Q Write the equation of the graph of y = cos(x) was shifted downwards by 3 units, shrink horizontally by a fourth of a unit, inverted horizontally and shifted 60 to the left. if it has an amplitude of 5 units. If a company is in new york city, and a qualified applicant lives across the country in california, what would be the most cost effective interview format to use? a. distance interview b. performance interview c. group interview d. behavioral interview please select the best answer from the choices provided a b c d Dianas father works in Houston, Texas, as a geologist in the oil and gas industry. He identifies locations where hydraulic fracturing, or fracking, might produce fuel resources. How does fracking work?A. Pressurized fluids are used to break up layers of shale rock. They force out the natural gas trapped there, which is then collected.B. Pressurized fluids are inserted into different kinds of rock. They force out the groundwater, and the fossil fuels are extracted from the groundwater.C. Pressurized fluids are inserted into deep oil wells to get the remaining oil.D. Pressurized fluids are inserted into known gas fields to locate the gases. The gases mix with the liquid before they are extracted. If the grain pile has a diameter of 30 feet and a height of 16 feet, what is the volume of the grain pile? In terms of TT. 14] Thereafter Madame Loisel knew the horrible existence of the needy. She bore her part, however, with sudden heroism. That dreadful debt must be paid. She would pay it. They dismissed their servant; they changed their lodgings; they rented a garret under the roof. [15] She came to know what heavy housework meant and the odious cares of the kitchen. She washed the dishes, using her dainty fingers and rosy nails on greasy pots and pans. She washed the soiled linen, the shirts and the dishcloths, which she dried upon a line; she carried the slops down to the street every morning and carried up the water, stopping for breath at every landing. And dressed like a woman of the people, she went to the fruiterer, the grocer, the butcher, a basket on her arm, bargaining, meeting with impertinence, defending her miserable money, sou by sou. . . . [16] This life lasted ten years. [17] At the end of ten years they had paid everything, everything, with the rates of usury and the accumulations of the compound interest. . . . How does the author use pacing to affect tension in this excerpt? A. The author speeds up the pace to ease tension as readers learn how Madame Loisel's life changed after she lost the necklace. B. The author speeds up the pace to build tension as readers learn how Madame Loisel's life changed after she lost the necklace. C. The author slows down the pace to ease tension as readers learn how Madame Loisel's life changed after she lost the necklace. D. The author slows down the pace to build tension as readers learn how Madame Loisel's life changed after she lost the necklace. 9. Why does Posadamean when hestates "we areeating moremarshmallows thanwe can produce?" Calculate the mass of water producd from the reaction of 126g of pentaboron noahydride with 192g of moleculAR OXYGEN the combustion of 17.41 grams of a compound known to only contain carbon, hydrogen, and oxygen produced 25.61 grams of carbon dioxide and 10.48 grams of water. a.) how much percentage of the compound is carbon? b.) how much percentage of the compound is hydrogen? c.) how much percentage of the compound is oxygen? A class consists of 60 boys and 40 girls. If two students are chosen at random, what is the probability that i) both are boys ii) both are girls iii) one boy and one girl? any help is great find the missing length? Can someone help me with this for page even if you can only do part of it The impeachment of President Trump is an example of which principle of limited government?checks and balances.separation of powersjudicial reviewfederalism What is the first step of the scientific method? A. HypothesesB. ControlC. Question hosting a dinner party for 38 people, you plan to serve peach pie for dessert. Each pie has 8 slices. how many pies must your buy to ensure each guest gets 1 slice A 2100-square-foot home is for sale. The finished basement has an area of 455 square feet. The basement accounts for what percent of the total square footage? How should parents communicate with children?Correcting the child is best done right away, even if the parent is angry.Use the word but to point out mistakes.Only verbal language is important in communicating.Get down to the childs level to talk. What is the missing coefficient of the x-term of the product (-x-5) after it has been simplified?O-25O-10O1025 Measure of the following 23.21Which equation represents the relationship between the number of liters, x, and the number of liquid pints, y?O y = x + 5.55Oy=x-5.55O y = 2.11xO Y - 211