g 'write a function that takes as input a list and outs a new list containing all elements from the input

Answers

Answer 1

Answer:

def mylist(*args):

   return args

new_list = mylist(2,3,4,5)

Explanation:

The simple python code above defines a function called mylist that receives multiple length of element as a list and returns the list a new list. The "*args" allows the function to receive any number of item and converts them to a list that is returned in the next statement.

The can also be achieved by simply assigning a squared bracket enclosed list to the variable or with the list() constructor.


Related Questions

For things like school, you should have a more serious:

Answers

Answer:

who and what do you mean

Explanation:

Consider the following code snippet:public class Employee{private String empID;private boolean hourly;public Employee(){}. . .}Which statement reflects the action performed when the constructor to Employee is called?

Answers

Answer:

Following are the solution to this question:

Explanation:

In the given question the choices are missing, that's why its solution can be defined as follows:

In the given question, a class Employee is declared, that defines two-variable "empID and hourly", in which both are different in data type, and a default constructor of the class is declared, in this class, the variable empID will be assigned the value that is equal to null, and the variable hourly that assign a value that is equal to false.

Where is the element coded in a web page.

Answers

Answer: Developer tools

Explanation:

To find and view code in a webpage it's often in the developer tools section for most web browsers. Like for Google Chrome click on the 2 dots than more tools than developers tools to enter the console. Then click elements to display a webpage's code. Hope this helps!

Your data warehousing project group is debating whether to create a prototype of a data warehouse before its implementation. The project group members are especially concerned about the need to acquire some data warehousing skills before implementing the enterprise-wide data warehouse. What would you recommend? Explain your recommendations.

Answers

Answer:

Hmmm, what would i recommand i think you Should learn skills and become innovative  

Explanation:

Sir i'm gonna go toilet and come back

Multiple Choice
The Boolean operators include which of the following?

A. and, or, not
B. to, for, from
C. a, an, the
D. is, are, not

Answers

Answer:

a

Explanation:

Boolean Operators are simple words (AND, OR, NOT or AND NOT) used as conjunctions to combine or exclude keywords in a search, resulting in more focused and productive results. ... Proximity Operators (with, near and others) can also help you in searching.

how and when abstract classes are used in python

Answers

Answer:

A class is called an Abstract class if it contains one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and its abstract methods must be implemented by its subclasses.

Explanation:

So it only makes sense to use them if you plan to have preferably more than one subclass.

what is the main purpose of shift a key

Answers

Answer:

Hmm. It will make letters capitalized without having to press the CapsLk?

Explanation:

An excellent website design delights its audience and is the product of innovation built on a foundation of
creative layout templates.
careful site planning.
an appealing theme.
audience feedback.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The given options to this question are:

creative layout templates. careful site planning. an appealing theme. audience feedback.

The correct answer among the given above options to this question is:

Careful Site Planning.

Because careful site planning only allows you to develop a website that will have a delightful design and will attract its audience and it is the foundation to built the product of innovation. In site planning, you plan about what would the theme of the site, layout, color, design, and know about the audience and how they will use it.

While other options are not correct because:

Layout, theme, and how to feedback the audience- all is decided and planned during careful website planning.

Answer:

B

Explanation:

When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise. A. True B. False

Answers

Answer:

False

Explanation:

It is FALSE that When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise.

This is because the "try/except" function is a python programming language function that is used in python to solve issues like race conditions, controlling errors in loops, file handling, database communication, network access, and many more.

The statement, "When reading data from a URL it is good practice to use a try/except block to catch any errors that may arise" is:

False

According to the given question, we are asked to show if the given statement is true or false about the use of a try/except block to catch errors when getting data from a URL.

As a result of this, when reading data from a Universal Resource Locator, it is not good practice to make use of a try/except block to try and catch any errors that may occur because this is a function which is used to solve race conditions and to handle error loops.

Therefore, the correct answer is False.

Read more here:

https://brainly.com/question/24131915

true or false storage is a systematic series of action that a computer uses to convert input to output​

Answers

Answer

The answer is false

PLS HELP For this activity, you can use the audio recorder on your cell phone or a digital camera to record the following sounds: • the sound of footsteps of someone walking towards you
• the sound of a person starting a car, rewing the engine, and driving away
• the sound of a phone ringing at home as you walk toward it the sound of somebody speaking to you as you walk toward that person
After you record these sounds from different sources, play them back and observe the differences in the recorded sound from each source. Write a note recounting your experience and observations for each of these recordings.​

Answers

Answer:

So you put down what is recorded. Because every time you Play back the audio it sound's different. When you are doing the Exp. It's Called Sound waves My Friend

Explanation:

Answer:

I recorded the four types of sounds as mentioned in the question. When I played them back, they seemed to create a dramatic effect.

The footsteps sounded quite dramatic and added purpose to the activity. I recorded the sound of my sister's footsteps as she walked down the stairs in high heels and then as she walked past me. When I was recording the sound, the footsteps sounded normal. However, when I heard the recorded footsteps, the sound of the slow, approaching footsteps created a sense of mystery. Who was the person walking down the stairs? Why was the person hurrying past me? Did she achieve what she set out to do? In addition, I noticed perspective in a sound effect for the first time. It started softly and then became louder. As she moved past me and went away, it became softer again until it finally faded away.

The engine noise, and the sound of starting and driving the car, brought out the innate nature of the sound and emphasized that there is more to starting an engine than just moving the car. For instance, when the car engine started, it was clear that the driver was heading somewhere. The car's constant "vrooming" noise indicated that the driver was waiting to drive. However, the question is, "What's the rush?" The sound of the car driving away indicated that the driver finally drove away. I also noticed that the way the car drives away reveals the driver's state of mind. When the driver is in a rush and swerves and drives away at great speed, there will be drama. This is different from the peaceful, non-rushed driving style of a person going out for a drive with his or her family. The sound of people going to work will be different from the sound of people going on a holiday or going shopping on a weekend.

Walking toward a ringing phone added an element of surprise to the action. I placed the recorder near the phone and could hear myself walking toward it. When I heard the recorded sound, it sounded as though I was in no rush to pick up the ringing phone. It sounded just like any other regular action, not one filled with drama or mystery.

As I walked toward my friend while he spoke, his voice sounded louder and clearer. The effect was similar to zooming in on an image from a distance. This adds perspective to sounds and voices, and it adds depth to the visuals as well.

Explanation:

PLATO ANSWER

Which statement is true?
1)A deque is a type of collection,
2)A collection is a type of deque.
3)A list is a type of deque.
4)A deque is a type of list.

Answers

Answer:

1. A deque is a type of collection.

Explanation:

The statement that is true is as follows:

A deque is a type of collection.

Thus, the correct option for this question is A.

What is Deque?

Deque may be defined as an ordered and systematic collection of items similar to the queue. It is also known as a double-ended queue. It consists of two ends, a front, and a rear, and the items remain positioned in the collection.

According to the context of this question, a deque is a kind of collection that holds data and information identical to a queue. From here, elements can be added to or eliminated from either the front or back very efficiently.

It is also often called a head-tail linked list. Though properly this signifies specific data with appropriate structure that has been the implementation of a deque.

Therefore, a deque is a type of collection that is a true statement. Thus, the correct option for this question is A.

To learn more about Deque, refer to the link:

https://brainly.com/question/16750037

#SPJ2

explain the main components of a computer system​

Answers

Answer:

A motherboard.

A Central Processing Unit (CPU)

A Graphics Processing Unit (GPU), also known as a video card.

Random Access Memory (RAM), also known as volatile memory.

Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)

Explanation:

They all work together to create a system

Write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. Hint: multiplication can be performed as repeated addition. Test your recursive function by prompting the user to enter values for x and y and then displaying the result. Your function should be able to handle multiplication of negative values.

Answers

Answer:

In Python:

def times(x,y):

     if y<0:

           return -1*times(x,y*-1)

     if y == 1:

           return x

     return x + times(x,y-1)

x = int(input("x: "))

y = int(input("y: "))

print(times(x,y))

Explanation:

I answered the question using Python3

This defines the function

def times(x,y):

This checks for negative values

     if y<0:

           return -1*times(x,y*-1)

This is the base case where y = 1

     if y == 1:

If true, the value of x is returned

           return x

This returns the recursion and it is repeated until the base case is achieved

     return x + times(x,y-1)

This prompts user for x value

x = int(input("x: "))

This prompts user for y value

y = int(input("y: "))

This calls the recursion and also prints the result

print(times(x,y))

Looking at the code below, what are the possible values that could be generated? (Assume Random has been imported with a new Random object).

int randomInt = rand.nextInt(2);
randomInt = randomInt + 1;
System.out.print(randomInt);

Answers

Answer:

1 or 2

Explanation:

rand.nextInt(2) generats a number between 0 and 2 ( not including 2). randomInt = randomInt + 1 adds 1 to that number.

Do you think GE will become one of the top 10 U.S. software companies? Why or why not?

Answers

Answer: I do belive GE will be one of the top 10 software companies because each year the software side of GE is growing 20 perecnt per year which is a big deal!

Explanation:

There are different kinds of firms. I think GE will become one of the top 10 U.S. software companies. The world is gradually turning to the production of electric cars and much more appliances and with this, I believe they would grow to the top 10 in no time.

General Electric Company (GE) is known to be one of the top American multinational conglomerate that is seen in New York State.

It has its headquartered in Boston and thy have been ranked 33rd in the 2020 ranking, among the Fortune 500 in the United States using their gross revenue.

Learn more about General Electric Company from

https://brainly.com/question/26379157

What is the purpose of the Error Alert feature?

Answers

Answer:

When you add data validation to a cell, the Error Alert feature is automatically turned on. It blocks the users from entering invalid data in the cell.

Explanation:

There ya go.. -_-

Answer:

A) To alert the user to data entry mistakes  

Explanation:

When people receive benefits just because they belong to a particular identity group, this is called

Answers

Answer:discrimination

Explanation:

with your basic knowledge in basic embroidery stitches, how will you motivate your family members the importance of learning basic embroidery stitches​

Answers

What are embroidery stitches?

i can't find my grandson someone help

Answers

Answer:

i'm right here

Explanation:

grandma

Answer:

were did u lose him.

Explanation:

A free-frame list Select one: a. is a set of all frames that are used for stack and heap memory. b. is a set of all frames that are currently unallocated to any process. c. is a set of all frames that are filled with all zeros. d. is a set of all frames that are currently being shared by at least two processes.

Answers

Answer:

b. is a set of all frames that are currently unallocated to any process

Explanation:

The free frame list is the list that used for all kind of the frames that presently non-allocated to any kind or process

Therefore as per the given situation, the correct option is b as it fits to the current situation

Hence, all the other options are wrong

So, only option b is correct

The same is to be considered

Answer:

b. is a set of all frames that are currently unallocated to any process.

How many permutations for a 7 characters in length string, which contains all following letters R, X, S, Y, T, Z, U, has either the string 'RXS' or string 'ZU' in the 7 characters string?

Answers

Answer:

Following are the solution to this question:

Explanation:

In the following forms, RXS can appear:  

[tex]R X S \_ \_ \_ \_[/tex] it may look like that really, [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ R X S \_ \_ \_[/tex] it may look like that really,  [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ \_ R X S \_ \_[/tex] it may look like that really, [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ \_ \_ R X S \_[/tex] it may look like that really,  [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

[tex]\_ \_ \_ \_ R X S[/tex] it may look like that really,  [tex]4 \times 3 \times 2 \times 1[/tex] forms = 24 may construct the remainder of its letters.  

And we'll have a total of [tex]24 \times 5 = 120[/tex] permutations with both the string RXS.

In the following forms, UZ can appear:

[tex]U Z \_ \_ \_ \_\ _[/tex]  They can organize your remaining 5 characters through 5 categories! Procedures [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ UZ \_ \_ \_ \_[/tex] They can organize your remaining 5 characters through 5 categories! Procedures [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ U Z \_ \_ \_[/tex]They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ \_ U Z \_ \_[/tex]They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ \_ \_ U Z \_[/tex] They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

[tex]\_ \_ \_ \_ \_ U Z[/tex] They can organize your remaining 5 characters through 5 categories! Procedures  [tex]= 5 \times 4 \times 3 \times 2 \times 1 = 120[/tex]

There may be [tex]120 \times 6 = 720[/tex] ways of complete permutations.

Drag the tiles to the correct boxes to complete the palrs.
Match the types of letters with their descriptions.
letter of interest
cover letter
thank you letter
letter of recommendation
discusses how you meet job requirements
>
reiterates why you're the best candidate for the job
>
tells more about your character and who you are
expresses your interest in working for a company

Answers

Answer:

Letter of interest> tells you more about your character and who you are expresses your interest in working for a company

Letter of recommendation> reiterates why you're the best candidate for the job

Cover letter> discusses how you meet job requirements

Hope this helped!

Answer:

Discusses how you meet job requirements = Cover Letter

Expresses your interest in working for a company = Letter of Interest

Tells more about your character and who you are = Letter of Recommendation

Reiterates why you're the best candidate for the job = Thank You Letter

Code used when creating a hyperlink to a specific part of the same page.

Answers

Answer:

Give The Object Or Text You'd Like To Link To A Name.

Take That Name That You've Chosen, And  Then Now Insert It To An Opening HTML Anchor Link Tag.

Place That Complete Opening <a> Tag From Before The Text Or Object You Want To Link It To, Then Now Add A Closing </a> tag after.

(Hope this is correct and hope this helped. Sorry if I'm wrong and you get this wrong)

Describe one practical application of total internal reflection. ​

Answers

Answer:

The phenomenon of total internal reflection of light is used in many optical instruments like telescopes, microscopes, binoculars, spectroscopes, periscopes etc. The brilliance of a diamond is due to total internal reflection. Optical fibre works on the principle of total internal reflection.

Explanation:

thank me later but if it wrong. sorry

He should identify his various
online and offline audiences,
and how best to engage them
TRUE
FALSE​

Answers

Answer:

false, that shouldn't be a a priority to identify if they are or not.

Explanation:

what is a film interpretation

Answers

Answer:

Interpretation of film language refers to an analysis using such factors as frames and shots, both denoted (literal meaning, what the audience see) and connoted (deeper meaning, what the audience may think).

Explanation:

*Hope this helps*

Answer:

What is a Film Interpretation?

Film interpretation is the process in which a film is analyzed in terms of scene, cinematography, sound (audio), graphics (video) and editing. One way of analyzing films is by shot-by-shot analysis, though it is only used for small clips or scenes.

PLEASE PEOPLE WHO DO PYTHON PLEASE HELP ITS DUE IN THE NIGHT
if you do not know the answer please do not answer otherwise I will report.
the answer that works will get brainliest


Please help me debug this code

Answers

Answer:Yo i was just on this in codehs

Explanation:

def turn_right():

   turn_left()

   turn_left()

   turn_left()

def jump_hurdle():

   turn_left()

   move()

   turn_right()

   move()

   turn_right()

   move()

   turn_left()

while front_is_blocked():

   jump_hurdle()

   

while front_is_clear():

   move()

Given class SimpleCar , which line has a syntax error? public class SimpleCar { private int odometer; public void drive(int miles) { odometer = odometer + miles; } } 1 Object objCar; 2 objCar = new SimpleCar(); 3 System.out.println(objCar.toString()); 4 objCar.drive();

Answers

Answer:

4 objCar.drive();

Explanation:

The java program defines a class called SimpleCar which has a void method called drive() that accepts one integer argument.

A method is a function defined in a class. The drive() method used in the program has no argument and so would throw an error message.

When you hear music, read a printout, or view a video, you are using a computer's

Answers

Answer:

yes

Explanation:

when you hear music or printing out something then ur probably using a device

Other Questions
Algebra Question that I need help in since Im taking a test [I noticed] a feeling of worthlessnessand loneliness; I began to think of myself as a freak and a misfit.Sidney LensRead the quote and then answer the question below.This quotation expresses the emotional effect felt by _____ people when the Great Depression struck.a.newly wealthyc.recently marriedb.suddenly unemployedd.successful professional Which of the following statements best describes how the author feels about her mother?Esperanza loves the bread-like smell of her mother's hair.Esperanza spends time with her little sister while her brothers play separately.Esperanza's name makes her feel uncomfortable, and she wants to change it.Esperanza does not want to grow up like her mother. Complete the table using the equation y = 4x + 8. 4/3=-6e-5/3 I know this is easy but i could use some help! Slogan for untouchability Frank gets 4 paychecks in 8 weeks. How many paychecks does he get in 52 weeks? A box contains 2 purple marbles, 2 blue marbles, 3 green marbles, and 5 red marbles. What is the probability of picking a green marble? Coach Crowell won 80% of the games he pitched. If he pitched 35 games, how many did he win? Who did the Susquehannock surrender to? Answer question 9 threw 20 for ALL my points (will mark brainlist) A chemical reaction in a lab experiment actually produces 1.23mol of BeBr2. The theoretical yield is 220g. To two decimal places, what is the percentage yield When water freezes, its volume increases by 9.05% (that is, equation). What force per unit area is water capable of exerting on a container when it freezes? What rest has the same duration as this note?a music note with a stem and an solid note head Eighth rest Quarter rest Half rest Whole rest (On achieve3000) Which of these is a statement of opinion? Press enter to interact with the item, and press tab button or down arrow until reaching the Submit button once the item is selected AChanges occur in the body according to the time of day during 24-hour cycles in response to circadian rhythms. Adolescents with later school start times will take advantage of the additional time for sleeping in the morning by staying up later at night. CSeattle Public Schools began having later high school start times that meet California's standards before California did. California middle schools must start their school days no earlier than 8 a.M. Beginning in the 2022 school year. Translate the following into an equation:You paid $30.12 for four pizzas that each cost the same price and this included the delivery charge of $3.00. Someone plz write out the answer Im confused! On a number line what number represents the point half the distance between A and B? what is the two parts of a solar system Annie took a total of 24 quizzes over the course of 3 weeks. How many weeks of school will Annie have to attend this quarter before she will have taken a total of 80 quizzes? Assume the relationship is directly proportional. ?weeks