Write a function, sublist, that takes in a list of numbers as the parameter. In the function, use a while loop to return a sublist of the input list. The sublist should contain the same values of the original list up until it reaches the number 5 (it should not contain the number 5).

Answers

Answer 1

Answer:

Following are the code to this question:

def sublist(l):#defining a method list sublist that accepts a list

   val=[]#defining an empty list

   x=0#defining x variable that store value 0

   while(x<len(l)):#defining loop that check x is lessthen list length  

       if(l[x]==5):#defining if block that checks list value equal to 5

           break#using break keyword  

       val.append(l[x])#add value in val list

       x+= 1#increment the value of x variable by 1

   return val#return val

l=[3,4,7,8,5,3,2]#defining list l

print(sublist(l))#using print method to call sublist method

Output:

[3, 4, 7, 8]

Explanation:

In the above python code, a method "sublist" is declared that accepts a list, inside the method an empty list "val" and an integer variable x is defined that stores "0"  value. In the method, a while loop is declared that checks list length and define if block to checklist element value equal to "5". which the condition is true it will return before values. In the last step, a list "l" is declared that holds value and used the print method to call sublist to prints its return value.

Related Questions

While investigating a 4-year-old PC that is taking an unusually long time to boot, a technician discovers that the BIOS is rediscovering the hardware system at every boot. What should the technician do to resolve the problem

Answers

Answer:

learn and train it to make it boot faster

Explanation:

Well we know that the PC is old and it takes a long time to boot also the BIOS is rediscovering the hardware system at every boot so he should make it reboot and learn and train it to make it boot faster

which is most harmful computer virus define​

Answers

Answer:

Spyware is the most harmful virus.

It enters into someones computer as a spy and steals the ones personal information, data and other codes.

Explanation:

The GaVS resource where students can locate information regarding Canvas, student email, registration and O365 is called the: Student Success Site Media Center dashboard Guidance Center

Answers

I Inferred you are referring to the Georgia Virtual School resource program.

Answer:

Guidance Center

Explanation:

Interestingly, the Georgia Virtual School (GaVS) enables students access to Virtual education.

Their resource platform allows students to find information regarding Canvas, student email, registration and Office 365 etc by simply going Guidance Center.

How does vibrancy affect a web page design? - Changes the emotion of the page - Decreases site traffic - Increases reading difficulty - Keeps color choices similar

Answers

Answer:

It changes the emotion of the page.

Computer security is concerned with protecting information, hardware, and software from unauthorized use, as well as preventing or limiting the damage from intrusions, sabotage, and natural disasters.
a) true
b) false

Answers

The correct answer is True

Explanation:

Computer security is a branch of security that focuses on the security of computer systems. This includes preventing cyber attacks that could steal the information or damage the software (programming code), as well as, preventing physical attacks or damage, this includes stopping unauthorized personnel from accessing the computers or devices and limiting the damages that might occur in situations such as fires, floods, etc. Additionally, computer security is now an important factor in most companies and organizations as relevant information is saved in computers, also, many functions rely on the use of computer systems.

According to this, the statement about computer security is true because this comprises the protection of hardware, software, and information in cases such as natural disasters, intrusions, etc.

Are bpos safe for organisations ? State your views on it

Answers

Answer:

No

Explanation:

Business process outsourcing is the act of contracting aspects of a business that are considered secondary to third-party vendors. These aspects of the business could range from Information Technology to accounting or quality assurance. Business process outsourcing has its advantages and disadvantages.

While it ensures flexibility and cost savings in the business, I believe that;

1. Releasing sensitive information about a business to people who are not within the confines of a business, could result in a breach in data handling. Sensitive information can no longer be entirely controlled by the business owners once in the hand of outsourced contractors. Information might get into the hand of hackers who can compromise business activities.

2. Given that some BPO's might require sourcing workers from countries abroad, and also considering the fact that different countries have different criteria as to what constitutes data handling breaches, it might sometimes be hard to enforce safety standards.

3. Quality control might also not be easy to achieve, and could be worsened by language and communication barriers.

4. If the organizations do not track their expenses religiously, they might end up spending more on outsourcing than they would have with employees. This might because they underestimated the pricing.

To handle these safety issues, the business owners might have to develop some very stringent methods of regulating Business Process Outsourcing.

WHAT ARE THE CONTENTS THAT WE SHOULD USE FOR THE PRESENTATION OF DIGITAL WORLD

Answers

Answer:

Introduction

Importance

Advantages

Disadvantages

Effects

Conclusion

You should not define a class field that is dependent upon the values of other class fields: Group of answer choices In order to avoid having stale data. Because it is redundant. Because it should be defined in another class. In order to keep it current.

Answers

Answer:

The answer is "In order to avoid having stale data".

Explanation:

In this question, only the above-given choice is correct because follows the class-object concept, and the wrong choices can be defined as follows:

In this question, the second and third choices are wrong because its class field data value is not redundant, it should not define in another class.The third choice is also wrong because it can't define the class field to keep it current.  

A user calls the helpdesk and states that they are receiving an IP conflict error on their computer. The user is on a company network that uses DHCP. The technician verifies the PC is using DHCP to obtain TCP/IP settings. Which of the following commands should the helpdesk technician use to resolve this issue? (Select two.)
A. IPCONFIG /REGISTERDNS
B. IPCONFIG /FLUSHDNS
C. IPCONFIG /RELEASE
D. IPCONFIG /RENEW
E. IPCONFIG /ALL

Answers

Answer:

a

Explanation:

none

Which statement about tensile stress is true? A. Forces that act perpendicular to the surface and pull an object apart exert a tensile stress on the object. B. Forces that act perpendicular to the surface and squeeze an object exert a tensile stress on the object. C. Forces that act parallel to the surface exert a tensile stress on the object. D. Forces that decrease the length of the material exert a tensile stress on the object.

Answers

Answer:

The correct option is;

A. Forces that act perpendicular to the surface and pull an object apart exert a tensile stress on the object

Explanation:

A material under tensile stress has axial forces tending to stretch the material and cause elongation. It is the force per unit area externally applied that results in stretching

The definition of tensile stress is the magnitude or amount of applied force on an elastic material divided by the cross-sectional area of the material perpendicular to the direction of the applied force

Therefore, the tensile stress comprises of forces that act perpendicular to a given surface pulling the sections apart.

_____ should be scanned for viruses

Answers

Answer:

Computers/laptops should be scanned for viruses.

Your question has been heard loud and clear.

People's blood , the plasma in the people's blood should be scanned for viruses.

Thank you owo

1. Write a try-catch block. In try block, do the following thing: if the balance is less than 100, throw an InsufficientFund exception; else print out the message saying that there are enough money in the account. In catch block, simply print out the message saying that there is not enough money in the account.
2. Write a template function template
T max(T& variable1, T& variable2)
That returns the larger value of variable1 and variable 2.
Assume that class T has overloaded the operator >.

Answers

Answer:

(Assuming C++):

#1

try{

 if (balance < 100)

 {

   throw "InsufficientFund";

 }

 else

 {

   printf("Sufficient funds in account.\n");

 }

}

catch{

 printf("Insufficient funds in account.\n");

}

---------------------------------------------------------------------------------------

#2

template <typename T>

T max (T& variable1, T& variable2)

{

 return variable1 >= variable2 ? variable1 : variable2;

}

Explanation:

For this, the answer assumes the use of the C++ language since not specified in the problem.

For #1, the use of the try-catch statement is simply to check the value of the funds within an account.  The question ask to check if the balance is under 100, to throw an "InsufficientFund" exception to be caught by the catch loop.  Otherwise, print there is enough funds.  If the exception is caught, the catch loop should simply print insufficient funds to the console.  The above code accomplishes each of these things by assuming a variable called "balance" holds the value of the account and has already been declared.  Additionally, the code uses the printf function to display the messages to the screen (Assuming stdio.h header has been included).

For #2, a template function called max was created to determine if variable1 or variable 2 had a greater value, and return the greatest variable.  The code uses the ternary operator to test the expression greater than or equal to and returns variable1 if greater or equal, otherwise, it returns variable2.

Side note, I haven't coded in C++ in years so some syntax may be wrong, but either way this is the concept of the two questions asked (I think I'm syntactically correct though).

Cheers.

etwork behavior analysis system __________ sensors are typically intended for network perimeter use, so they are deployed in close proximity to the perimeter firewalls, often between the firewall and the Internet border router to limit incoming attacks that could overwhelm the firewall.

Answers

Answer:

"Inline" is the correct answer.

Explanation:

Network behavior analysis (NBA)  or Analysis of network activity seems to be the technique to observe traffic trends that aren't groups or sets throughout the cable network's everyday traffic. Simplest terms, this is the organization's effort to define network anomalies outside pure congested traffic expect a seamless.

So that the above is the correct answer.

A virus does not harm the ________ of a computer

Answers

Answer:

Hardware part

Explanation:

The hardware part of computer is not harmed by virus.

I hope this will be helpful for you

Answer: Hardware part

A technician has been dispatched to a customer site to diagnose an issue where the computer turns off intermittently. Upon arriving at the site, the technician detects a smoke smell coming from the computer. Which of the following is the BEST solution?
A. Power down the system and replace the CPU.
B. Power down the system and replace the power supply.
C. Install an additional case fan for proper ventilation.
D. Remove the side panel for proper ventilation.

Answers

Answer:

The answer is "Option B".

Explanation:

When the technician detects a smoke smell, which is coming from the computer system it means it will sort to solve this problem the technician will shut the system down and substitute electricity, at this, it overcomes the problem, and wrong choices can be defined as follows:

In choice A, It is wrong because in this system component may be destroyed.In choice C and D both are wrong because it is not a software and side panel problem.-

Mental state shift involves what?

Answers

Answer:

It involves a matter involving doubt, uncertainty, or difficulty that may be solved, problem ... getting into a frame of mind to be creative and solve problems.

Explanation:

Hope i am marked as brainliest answer

List any four routes of transmission of computer virus.
please give me answer​

Answers

Opening attachments or links from unknown or spoofed emails. note: shown above are two examples of how viruses can often appear as legitimate messages, but are designed to trick the computer user. ...

Downloading software from malicious sites. ...

Online Ads. ...

Social media. ...

Unpatched software.

follow me

The routes of the transmission of computer virus include:

Downloading infected files.Shared devices.Corrupt email attachments.Infected drives.

A computer virus refers to a malicious piece of computer code that is designed in order to damage a device or steal data.

The routes of infection for a computer virus include attached files, external storage media, downloading infected files, sharing infected devices, etc.

Read related link on:

https://brainly.com/question/19584310

Paavo was reviewing a request by an executive for a new subnotebook computer. The executive said that he wanted USB OTG support and asked Paavo’s opinion regarding its security. What would Paavo tell him about USB OTG security

Answers

Answer:

Connecting a mobile device as a peripheral to an infected computer could allow malware to be sent to that device.

Explanation:

Since in the question it is mentioned that Paavo reviewed a request by an executive for subnotebook computer i.e new. but he needs to USB OTG support so it is a  USB i.e on the go that links the devices from one device to another

Therefore by links the mobile device to the computer i.e infected that allows malware we called virus so that we are able to send it to that device. By this,  he wants to tell about the USB OTG security

When an "is a" relationship exists between objects, it means that the specialized object has Group of answer choices Some of the characteristics of the general object, but not all Some of the characteristics of the general class, but not all, plus additional characteristics None of the characteristics of the general object All the characteristics of the general object, plus additional characteristics

Answers

Answer:

All the characteristics of the general object, plus additional characteristics

Explanation:

In case when an is a relationship exists between objects. Here is a relationship refers to a relationship in which there is a reference of one class to another class.

So this represent that the specialized object contains all the attributes of a general object along with it it also involved the extra attributes

Hence, the last option is correct

i know this not school related but my grandmothers RCA RCT6272W23 tablet is saying type password to decrypt storage and i dont know what to do someone please help

Answers

Answer:

Type the password

Explanation:

It's probably trying to open some kind of compressed file to access data.

What is the role of bpo in growth of Indian economy ?

Answers

Answer:

BPO Role in India's Economic Growth

The role played by BPOs in boosting India's economy shows that the IT and ITeS sector have been contributing largely to the economic growth of India. The growth in the contribution of BPOs to Gross Domestic Product has shown a steady rise from 1.2% to 5.4%.

Sniffer turns the NIC of a system to the promiscuous mode so that it listens to all the data transmitted on its segment. It can constantly read all information entering the computer through the NIC by decoding the information encapsulated in the data packet. Passive sniffing is one of the types of sniffing. Passive sniffing refers to:

Answers

Answer:

The right answer will be "Sniffing through a hub".

Explanation:

Packet sniffer seems to be a device that listens for transmitted data on what seems like a channel. Sniffing enables the detection of data by individual people as it has been transferred throughout a cable. Appropriate nodes are using this methodology to make a diagnosis of connection issues, or even just harmful programs to obtain confidential information, like authentication and encryption.

An Administrator wants to make a list of all prospects who complete the Contact Us form but only wants them to be added the first time they complete the form. If a prospect is ever removed from the list, they shouldn't be able to get added back to it. What is the best way to create this type of list

Answers

Answer:

The answer to this question can be defined as follows:

Explanation:

The easiest way to build such a list is by using an algorithm rule, where the prospects who complete the form are then matched with the rule and added to the list because the developer would also like to list of the all applicants, who fill out all the contact us Application, but still only prefer to also have them added when they fill-up the form first. When an outlook is ever omitted from the list, it should not be included.

Case-Based Critical Thinking Questions Case 1-2 Ted is asked to create a page containing his family photos for a family reunion website. He has about 20 pictures to post, with a caption that he wants to display before each one. Each picture is a group photo of a particular family. Which tag will Ted need to use to display the pictures

Answers

Answer:

Image tag or <img> tag

Explanation:

HTML refers to Hypertext Markup language. In this, we can be designed our documents by applying the font, color, image i.e to presented in the web browser. It is used for creating the webpages

Since in the question, Ted has approx 20 pictures for the post having caption and wants to display the picture so he needs to use the image tag or <img> for displaying the pictures. This tag is used for linking the images for the web pages you have created

What technology will examine the current state of a network device before allowing it can to connect to the network and force any device that does not meet a specified set of criteria to connect only to a quarantine network? Group of answer choices

Answers

Answer:

Network Access Control

Explanation:

A Network Access Control (NAC) system can deny network access to, quarantine, or restrict resources to a device before allowing the device access to a network.  This keeps insecure nodes from infecting the network.  For more information check out cisco's resources regarding NAC and it's uses and implementations.

Hector is trying to use Windows Defender to run an antivirus scan. Windows Defender refuses to run. When he opens the Action Center, Hector realizes that Windows Defender has been disabled and another antivirus software is running. Hector does not recognize the other antivirus software.
What type attack has infected Hector's computer?

Answers

Answer:

Rogue antivirus

Explanation:

A Rogue antivirus is a security software in which it misguides the users to pay for it so that the malware or virus could be removed from the computer but actually this is a malware which is installed in the computer system so that they could able to do fraud with the users

In the given situation, since Hector is trying for run Windows defender but it is disabled and on the other side the other antivirus software that infected the computer

Therefore this situation represents the rogue antivirus

Which is an aspect of structural-level design? A. scaling B. player-adjusted time C. difficulty level D. radiosity

Answers

Answer:

D. radiosity

Explanation:

This is because in computers the definition of radiosity is an application of the elemental method of solving the equation for other particular scenes with surfaces that gradually reflects light diffusely.

Answer:

its d

Explanation:

im right

What are the types of computers?

Answers

Answer:There are 5 types of computers.

Explanation:(1)Super computer: are the fastest and expensive computer.super computer can do trillion calculations in every second.

(2)Mainframe: are similar to the super computers all use raw power focus on few tasks.

(3)Server computer: is a central computer that contain of collection data and program.

(4)Personal computer: is also known as a microcomputer.personal computer is all around can  be used as productivity tool.

(5)Work station: are expensive computers and more complex and are intended one user at a time.

Answer:

the four types of computers are;

personal computerMainframe computersuper computersMini computers

Andy designed a web page for a product-oriented industry using CSS properties. He used several HTML tags to create the web page. He also used tables to ensure that the data is easily managed.
​Andy wants the borders to be distinctly visible for each cell in the product details table. Which of the following properties must Andy add to his code to accomplish his goal?
A. ​border-spacing: length;
B. ​border-collapse: separate;
C. ​border-collapse: collapse;
D. ​border-spacing: initial;

Answers

Answer:

CSS documentation

Explanation:

Use this CSS reference to browse an alphabetical index of all the standard CSS properties, pseudo-classes, pseudo-elements, data types, and at-rules. You can also browse a list of all the CSS selectors organized by type and a list of key CSS concepts. Also included is a brief DOM-CSS / CSSOM reference.

Locatiopn: https://devdocs.io/css/

The properties that Andy must add to his code to accomplish his goal is (B), border-collapse: separate.

What is border-collapse?

The border-collapse property in CSS determines how the borders of table cells are collapsed. The default value of border-collapse is collapse, which means that the borders of adjacent cells are merged together. To make the borders of the cells in Andy's table distinctly visible, he needs to set the border-collapse property to separate.

The other possible answers are incorrect. The border-spacing property determines the amount of space between the borders of adjacent cells. The border-spacing: initial value sets the border spacing to the default value, which is 0 pixels.

Find out more on CSS properties here: https://brainly.com/question/14918146

#SPJ2

Which of the following are examples of interpreted languages? Each correct answer represents a complete solution. Choose two. This task contains the radio buttons and checkboxes for options. The shortcut keys to perform this task are A to H and alt+1 to alt+9. A Markup B Compiled C Query D Scripted

Answers

Answer:

The answer to this question can be defined as follows:

Explanation:

The given question has more than one question and some of the choices are missing so, their correct solution and the question with the choices can be defined as follows:

1)

Interpreted languages:

The interpreted language is a kind of programming language, in which most of the applications carrying out instruction freely and openly, without having compiled a program. so, the types of the programming language are " PHP, Perl, Ruby, and Python"

2)

The answer is "Post a glossary or FAQ page".

explanation:

This section is used to covers the data. It is used as the goal of the company or business to obtain answers to these questions. Those who may also use your FAQ page for a first contact point for clients who are searching for answers before contacting you directly.

please find the attachment.

Other Questions
Why can some ions move across membranes but others cannot Major American car manufacturers are offering buying incentives to newly graduated college students who traditionally have little or no credit. Car manufacturers are using which of the following market modification strategies?a) finding new usersb) increasing use by existing customersc) modifying the productd) creating new use situations 2) w(x) =18-X +-5'5. Find w 1367A)B)10177039C)D)2040PLZ HELP ): President Cooper is a strong advocate of free higher education for all. In an attempt to gain favor from the masses for his legislative agenda, he has been appearing on several news channels to talk about the importance of higher education in the country. He even appeared on an episode of "Child Speak," an educational television show for children, to express his vision. From President Cooper's actions, it is evident that he is employing a strategy known as: What did Marie Curie achieve during her career? Check all that apply. solve the equation by using substitution method X + 2 Y equal to 8 equation first 2 x minus 2 equal to 10 equation second What is the GIM of a strip mall with annual income of $547,500 and a value of $6,345,000? Know that Emile Durkheim, Max Weber, and Karl Marx are considered the three great classical sociologists. Know that each of these three early theorists was alive in the 1800s and preoccupied with studying and explaining the enormous social changes going on Western Europe as a result of the Industrial Revolution that began in the mid-eighteenth century. This long process of change that society was undergoing is known as modernization? Please help!!! Question is below Mike ran 2 km in 13 minutes. If he continues at this same pace, how long will it take Mike to run 7 km? Round your answer to the nearest minute.minutes Write this in English .Type in EnglishI need the answer ASAP suppose a German company issues a bond with a par value of 1,000, 23 years to maturity, and a coupon rate of 3.8 percent paid annually. If the yield to maturity is 4.7 percent, what is the current price of the bond? (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.) 23 points! Paige has 3 coats: a pink one, a red one, and a white one. She has a black scarf, a gray scarf and 1 set of white gloves. Determine the different combinations Paige has for staying warm if she always wears a coat, a scarf, and gloves. For your answer, list the total number of possibilities and all possible combinations she has. Sarah serves at a restaurant and makes 20% of what she sells as tips. Her base salary is $10.20an hour. Each hour she sells an average of $60 of food and drinks. She also makes time and a half when she works over 8 hours during a single shift. Her work week contains three 10-hour shifts, one 5-hour shift, and one 11-hour shift. Using the same income deductions as stated in the previous question, what is Sarahs annual gross income and annual net income. The Lion finds the threat to the forest and decides on the best way to defeat it in The Wonderful Wizard of Oz. How does the Lion defeat the threat If a = 4 and b = 7, what is the value of the following expression? 20 a + 7 b A. 28 B. 84 C. 54 D. 33 NEEDED ASAP!! How does Our Town relate to realism? Its set includes a detailed depiction of the setting. It only describes realistic human experiences in its scenes. Its use of asides offers more information than traditional realism would offer. It does not provide the audience with as much information as a realist play would provide. HELP NOW A dartboard has 20 equally divided wedges, and you are awarded the number of points in the section your dart lands in. If you are equally likely to land in any wedge, what is the probability you will score more than 10 points? A pharmaceutical company is making a large volume of nitrous oxide (NO). They predict they will be able to make a maximum amount of 4860 grams with the materials they have in stock. From the previous 10 volumes they have made, they know that the percent yield of this reaction is fairly low at 47%. How much will the actual yield be? The Lannisters family went to bed one frigid winter night and were found deceased the next day. A squirrels nest was found in their chimney. What happened to the Lannisters?