easy python question, no explanation just right answer

Easy Python Question, No Explanation Just Right Answer

Answers

Answer 1

Answer:

See the code below.

Explanation:

def sumOfTwo(a, b, v):

   output = False

   for i in a:

       for j in b:

           sum = i + j

           if sum == v:

               output = True

   print(output)

sumOfTwo([-4, 6, 1], [10, .5, 30], 6)

You can use any online python ide to check the code.


Related Questions

A distinguishing feature of methods that have the reserved word void in the method header is that they have:.

Answers

Answer:

no return statements

Explanation:

A distinguishing feature of methods that have the reserved word void in the method header is that they have no return statement.

What is reserved word?

Reserved words are expressions that have been designated for a certain purpose but cannot be used when naming variables. For instance, "print" is a reserved term since it is used to display text on a screen in many different languages.

Operating systems employ reserved words as a way to designate a device file or another service. The MS-DOS and Windows operating systems' reserved terms are listed below.

For instance, if you try to save a file as CON or CON.txt, you can get an error saying the file already exists or that the name is reserved.

Therefore, A distinguishing feature of methods that have the reserved word void in the method header is that they have no return statement.

To learn more about no return statement, refer to the link:

https://brainly.com/question/14894498

#SPJ2

Alejandro wants to post an animation on his social media page that shows a series of slightly different images displayed in sequence. What type of animation should he select

Answers

The type of animation that Alejandro should select show a series of images displayed in sequence is: Animated GIF.

What is graphic design?

Graphic design can be defined as an artistic process that is used for the creation of various art works and animations.

In the creation of various graphic files such as in 2-D or 3-D, graphic designers can use a variety of software applications or programs to create still images and animations.

In this scenario, Alejandro should select an animated graphics interchange format (GIF) to show a series of images displayed in sequence.

Read more on graphic design here: brainly.com/question/25299426

A _______ is a group of elements that you want to style in a particular way.

a. id
b. element
C. class

Answers

a id is a group of elements of that you want to style in a particular way

Answer:

Brainliest

Explanation:

C. class

Please help me on this it’s due now

Answers

Bottom right goes first then top right for the second part!


2. Asterisk (*) symbol in criteria for query stands for:
(al Any number of characters
(b) One character
C zero characters

Answers

Answer:

The answer is A

Explanation:

The Asterisk symbol (*) is used in all fields.

Which of the following is a benefit of using a passphrase?
A. A passphrase is easy for the creator to remember
B. A passphrase can be shorter than a standard password
C. A passphrase will never need to be updated, even if it was compromised in a breach
D. All of the above

Answers

Answer:

Brainliest pls

Explanation:

The benefit of passphrases is that they make it easier for a user to generate entropy and a lack of order—and thus more security—while still creating a memorable credential. Generating entropy through randomized characters can be difficult, but this also makes it more difficult to launch a cyberattack against you.

The following is a benefit of using a paraphrase is D. All of the above.

What is a paraphrase?

Paraphrasing manner placing a person else's thoughts into your personal words. Paraphrasing a supply includes converting the wording even as retaining the authentic meaning. Paraphrasing is an opportunity to quote.

The advantage of paraphrases is they make it simpler for a consumer to generate entropy and a loss of order—and for that reason extra security—even as nevertheless growing a memorable credential. Generating entropy thru randomized characters may be tough, however, this additionally makes it extra tough to release a cyberattack on you.

Read more about the paraphrase :

https://brainly.com/question/17174600

#SPJ2

You have a user who has difficulty typing. She is constantly pressing keys multiple times by accident. Which keyboard accessibility option should you enable? Mouse keys Bounce keys Sticky keys Repeat keys

Answers

The answer is option B, Bounce keys

Can someone answer this question please because i didn't understand.

Name the icon you use on your graphical user interface the least. Explain why you rarel use it.

Answers

Answer:

Read below

Explanation:

Your graphical user interface is essentially your home screen on your phone or computer. You interact with the icons of apps on your phone. This question is worded kind of weird, but I would assume that you would just pick the app you use the least and explain why.

Select all examples of ethical and appropriate use of business e-mails.

1 ) Claudia shares a joke with her coworkers.
2) Celia forwards an e-mail asking for donations to the relief fund for hurricane victims.
3) Lucia sets up a 2:00 meeting with her marketing team.
4) Iris sends a message about a rally to stop the sale of furs.
5) Ken deletes a message from his boss without reading it.
6) Karl sends a graphic to his coworker in an attachment. Karl sends a graphic to his coworker in an attachment.

Answers

Answer:

Number 3 only I believe, sorry if im wrong.

Explanation:

A Card class has been defined with the following data fields. Notice that the rank of a Card only includes the values from Ace - 10 (face cards have been removed):

class Card {

private int rank; // values Ace (1) to 10
private int suit; // club - 0, diamond - 1, heart - 2, spade - 3

public Card(int rank, int suit) {
this.rank = rank;
this.suit = suit;
}
}

A deck of cards has been defined with the following array:

Card[] cards = new Card[40];

Which of the following for loops will populate cards so there is a Card object of each suit and rank (e.g: an ace of clubs, and ace of diamonds, an ace of hearts, an ace of spades, a 1 of clubs, etc)?

Note: This question is best answered after completion of the programming practice activity for this section.

a
int index = 0;
for (int suit = 1; suit < = 10; suit++) {
for (int rank = 0; rank < = 3; rank++) {
cards[index] = new Card (rank, suit);
index++;
}
}

b
int index = 0;
for (int suit = 0; suit < = 4; suit++) {
for (int rank = 0; rank < = 10; rank++) {
cards[index] = new Card (rank, suit);
index++;
}
}

c
int index = 0;
for (int rank = 1; rank <= 10; rank++) {
for (int suit = 0; suit <= 3; suit++) {
cards[index] = new Card (rank, suit);
index++;
}

d
int index = 0;
for (int suit = 0; suit < = 3; suit++) {
for (int rank = 1; rank < 10; rank++) {
cards[index] = new Card (rank, suit);
index++;
}
}

Answers

Answer: b

Explanation: i did this one!!!!!!!!!!

This is an example of what type of formula? =average(d1:d17) question 1 options: addition subtraction range average

Answers

Answer:

d average

Explanation:

The average is the ratio of the sum of the observation to the total number of observations. Then the correct option is D.

What is average?

Average is simply defined as the mean of the given set of numbers. The mean is considered as one of the measures of central tendencies in statistics. The average is said to be an arithmetic mean.

The average is given as

[tex]\rm Average = \dfrac{Sum\ of\ the\ observation}{Total\ number\ of \ observations}[/tex]

This is an example of the average formula.

More about the average link is given below.

https://brainly.com/question/521501

difference between local technology and model technology with example​

Answers

The differences? Speed, size, storage or load, or just plain work-load, between ‘modern,’ and trad. technology is probably easiest to compare. We tend to think of communication tech, and computation tech when we say ‘modern,’ but traditional? Lets define that just a bit. Are we talking machines and devices, or the uses themselves, like fire from rubbing two sticks together to fire from an ‘electronic,’ cigarette lighter?Some things are just novelties. There are times when cheap, non electronic devices provide practical and very necessary service in places where an electronic device is too high-maintenance to be equally practical. There is no need to put a computer on a well pump if you’re in a back-water where electronic replacement parts are hard to come by. You just hand pump the thing and it works fine and at your convenience. Certain ‘Green,’ tech, like solar ovens, are a far cry from a fire pit, or even a gas barbecue, and though it’s marketed as ‘new’ technology, depending of course on design and materials used, it is very low-tech. Useful technology seems really only cosmetically changed, with new clothes over old bones, so-to-speak. A different package, a different color, but it’s the job it does that matters. The best comparison between ‘modern,’ tech and ‘traditional,’ tech that springs to mind though, is that modern tech is very modular and if it breaks it’s often disposable, rather than fixable, for most of us.
The differences between modern and traditional technologies are: Traditional technology was based on simple laws and mechanics while modern technology is formed by the integration of many simple mechanics. Modern technology is built on the existing traditional technology. An example of local technology is plough, water mill and water pump. Example of model technology could be a statue or a painting.

While talking to a new client, the client asked you why access control is mostly used in enterprise networks rather than home networks. How should you reply

Answers

The way a person should  reply the client is that An enterprise network will have more sensitive and confidential information.

What are sensitive and confidential information?

Sensitive and confidential information are known to be any kind of information that a person or any business organization do not want to disclosed such as trade secrets.

Note that telling or convincing a client that An enterprise network will have more sensitive and confidential information will help them make the right choice.

See options below

How should you reply?

The devices required for access control can only be afforded an enterprise

An enterprise network will have more sensitive and confidential information

Access controls can only be configured by security admins

Enterprises attract more business when using access control.

Learn more about client from

https://brainly.com/question/25385643

O B. the bulk of a person's income.
a
C. a person's excess income.
Those taking illegal drugs, or using a prescription drug without a medical need, are likely ...
A. to be making a calci

Answers

im confused by the formatting of this- maybe type it again ;-;

Gary was browsing through a programming website currently on prog. Edu/homepage. Html. There were few related links on the page. He clicked on a link that had the term "Learn Testing. " This link led him a website called learntotest. Edu/learntesthome. Html. Which is the entry page in this

case?

A. Learntotest. Edu/learntesthome. Html

Ð. Learntotest. Edu

C. Prog. Edu/homepage. Html

D. Prog. Edu

Answers

The entry page in this scenario above for Gary is  Learntotest. Edu/learntesthome. Html.

What is HTML?

HTML  is known as HyperText Markup Language. This is said to be a kind of code that is often written and  used to make standard a web page and all of its content.

Conclusively, Note that all HTML documents often begins with a document type declaration such as : <!DOCTYPE html>  as in the case above

Learn more about HTML from

https://brainly.com/question/4056554

A ________ is any business event that generates data worthy of being captured and stored in the organization’s database.

Answers

the answer is transaction

How does the quantity of data affect the accuracy of an experiment?
A. The more data is collected, the more accurate predictions and
results can be.
B. The less data is collected, the more data scientists have to search
for.
C. The less data is collected, the less likely it is that the experiment
will have to be repeated.
D. The more data is collected, the more time scientists spend
analyzing the results and predictions.

Answers

The more data that is collected, the more accurate predictions and results can be.

One way to check if a website is secure is to look for a/an
in the address bar.

Answers

Answer:

One such sign to look for is in the URL of the website. A secure website's URL should begin with “https” rather than “http”. The “s” at the end of “http” stands for secure and is using an SSL (Secure Sockets Layer) connection. Your information will be encrypted before being sent to a server.

T - True. One way to check if a website is secure is to look for a padlock icon in the address bar.

How does this work?

This padlock indicates that the website is using a secure HTTPS connection. HTTPS encrypts the data transmitted between the user's browser and the website, ensuring that sensitive information such as login credentials or financial details remains private and protected from unauthorized access.

Additionally, a secure website's address will start with "https://" instead of "http://". Users should always verify these security indicators before entering any personal or sensitive information on a website to safeguard their online privacy and security.

Read more about websites here:

https://brainly.com/question/28431103

#SPJ2

Which file in linux would i need to modify in order for a local user to connect to a new site i created by just entering the site name in the browser

Answers

I attached my answer because Brainly wouldn't let me post it. It is important  to be detailed since you are setting up a DNS server to do this.

Who is the founder of C language?​

Answers

Answer:

Dennis Ritchie is the founder of C language.

Correctly installed tubing is installed in a neat fashion with bends that follow existing _____. Group of answer choices rules contours trends assumptions

Answers

Correctly installed tubing is installed in a neat fashion with bends that follow existing contours.

What is tubing?

Tubing is known to be the original flow conduit that is often employed by people to move created fluids to the surface or in fluids formation.

Note that it is often used in wells and as such, a rightly installed tubing is installed in a good and clean way with bends that follow existing contours.

Learn more about tubing from

https://brainly.com/question/17274244

Please help me on this it’s due now

Answers

Answer:

I believe the answer is both A and B

explanation : I just read thru both and I chose the one that seemed to make more sense I hope you get it right

list four pointing devices and describe the four pointing devices ​

Answers

Answer:

Common pointing devices

Mouse.

Trackball.

Joystick.

Pointing stick.

Explanation:

Hope this helps

Consider the following code segment. What is the value of result after the code segment is executed? (WILL GIVE BRAINLIEST IF CORRECT)

A) 6
B) 10
C) 15
D) 21

Answers

Answer:

I think its B or C

Explanation:

After the code segment is executed, the value 6 is returned. As a result, option A is correct.

What is a code segment?

A text segment is one of the sections of a programme in an object file or memory that contains executable instructions. It is also known as text or a section of code.

It stores static constants rather than variables, in contrast to the code segment, also known as the text segment, which is read-only on many architectures.

Exons are coding segments, while introns are non-coding segments. The BSS section, on the other hand, contains uninitialized constants and variables.

Demographic, psychographic, geographic, and behavioural segmentation are examples of the four types of segmentation.

These are typical examples of how businesses can segment their markets based on factors such as gender, age, and lifestyle.

Thus, the correct option is A.

For more details regarding code segment, visit:

https://brainly.com/question/20063766

#SPJ3

User inserts 10 numbers. Write a program that will show if there are more positive or negative numbers among the entered numbers.

Answers

Here is a basic program that I wrote.  This will check how many positive/negative numbers are in the table and then prints the amount..

Using Python

# list of numbers

list1 = [10, -21, 4, -45, 66, -93, 1]

 

pos_count, neg_count = 0, 0

 

# iterating each number in list

for num in list1:

     

   # checking condition

   if num >= 0:

       pos_count += 1

 

   else:

       neg_count += 1

         

print("Positive numbers: ", pos_count)

print("Negative numbers: ", neg_count)

You conduct an experiment to find the probability of a flipped coin landing on
heads or tails. You flip the coin 10 times, with a result of 8 heads and 2 tails,
and conclude that the probability of a coin landing on heads is 80%. Why did
you get inaccurate results?
A. The size of the coin wasn't considered.
B. The sample size was too small.
C. There is only one head and one tail, so the results should be 50%
each.
O D. You didn't flip the coin high enough.

Answers

Answer:

Experimental probability describes how frequently an event actually occurred in an experiment. So if you tossed a coin 20 times and got heads 8 times, the experimental probability of getting heads would be 8/20, which is the same as 2/5, or 0.4, or 40%.

C. The probability of choosing something could either be this or that . Considering this, the probability of obtaining a head should be 50%

In a typical information security program, what is the primary responsibility of information (data) owner

Answers

The typical responsibility of the information that an owner is to determine the level of sensitivity or classification level.

What is an information security program?

The information security program is a set of activities, projects, and initiatives that help an organization IT framework and help the organization meet all the business goals leading to corresponding to the benchmarks. The main duty of the data owner is to determine the level of sensitivity of the data.

Find out more information about information security.

brainly.com/question/25226643

A _____ is a grid that displays fields as columns and records as rows.

Answers

Answer: it is a datasheet because data is like a a place to keep things in and you can organise that in many different way's

One way to insert a page break is to choose page break from the Insert tab.

true or false

Answers

true that is a way to insert a page break

What is one reason why businessman want to move entirely online

Answers

• You can reach a large number of people at once. This aids in the expansion of a firm and the sale of any goods.

• When compared to offline business, if you have your own product, you can quickly sell it to thousands of people online (offline business are also good business but you need to so many time to reach thousand people and customer)

• When you sell a product globally, people complain that it's difficult to track product and profit, but when you sell a product online, it's the greatest and easiest way to track product and profit.

• You will be able to reach out to people all around the world, which will benefit you and your company. You will be aware of the needs of people all around the world. Your company's clientele spans the globe.
Other Questions
The viral pathogen that causes cold sores can remain inactive in the body for a long time between disease outbreaks. How is this disease classified A circle with radius of 1 cm sits inside a 11 cm x 12 cm rectangle.What is the area of the shaded region? MAX POINTS PLEASE HELP Will make BrainliestWhat is the period and frequency of the function graphed and how would the equation be written 153 = 9k HELP PLEASE THANK YOU What happens to a positively charged ion during a chemical change? Cooper's family is going to relax at the beach all day! In preparation, Cooper made s sandwiches for them to eat when they get hungry. Cooper put 3 slices of turkey and 3 slices of ham on each sandwich.Pick all the expressions that represent how many slices of meat Cooper used on the sandwiches. I am buying a pen p(assive voice) the force of attraction between earth and objects on its surface i pesanteur question in the attached img. pls help me thank you in advance the carbon atom which becomes asymmetric when the straight chain form of monosaccharide change into ring form is known as____\ A uniformly charged insulating rod is bent into the shape of a semicircle of radius R = 5 cm. If the rod has a total charge of Q = 3.10-9C, find the magnitude and direction of the electric field at O, the center of the circle. Why did the Allies attack civilian and military targets in Japan?to demoralize the populationto inspire the population to rebel against the governmentto force the Japanese military off Midway Islandto cause as much damage as possible **PLS HELP BRAINLIEST** help i need the awnser Read this excerpt from a passage.Cell phones are an integral part of life for adolescents. As students enroll in college and enter the workforcecell phones will continue to be important. While some educators think that cell phones are a distraction, cellphones should be seen instead as tools that improve student safety, employability, and learning. Rather thanarbitrarily banning cell phones, school administrators should work on developing technology guidelines andlesson plans that include cell phone use in the classroom. New policies for the twenty-first century will benefistudents, teachers, and society. What is the next number in the sequence? 9.16.24.33 Please help I'll mark brainliest 2 A coconut falls from the top of a tree and reaches a velocity of 19.6 m/s when it hits the ground. it takes two seconds to reach the ground. what is the coconuts acceleration? mention any two economic activities of people living in province no 1 of nepal how important was the road system to life in the inca empire?