What is a return statement used for?
o beginning a function
O repeating a value
copying a function
exiting a function
DONE

Answers

Answer 1

Answer:

Exiting a function

Explanation:

Return simply returns a specified value at the end of a def function (if you're in python). It does not print or do anything else. You could set variables equal to a def function that returns or you could put the def function in a print statement to print the returned value.


Related Questions

why is it important to make sure link is from a trusted source?

Answers

Answer:

So to make sure itś true not false

Explanation:

Answer:

so you know that the information is trusted and correct. Take Wikipedia as a example people can edit any passages thingy's. Or it can cause you to have viruses and stuff

Explanation:

hope this help !!:):

Word processing software is used primarily by schools rather than businesses.
True or false

Answers

Answer:

False.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

Generally, the Microsoft Word software is used by various businesses for processing and formatting text-based documents.

In Microsoft Word, formatting refers to the appearance of texts in a document.

Formatting a text involves performing tasks such as, bold, underline, italics, font-size, font-types, color etc. The commands to perform the above tasks are mainly found in the format menu of the Home tab.

Formatting a document is important and necessary because it makes the word document clear and easy to read.

Hence, Word processing software such as Microsoft Word, Notepad, etc., is used primarily by businesses rather than schools because most businesses deal with the creation and transfer of documents from one department to another or to other businesses.

This ultimately implies that, business firms or organizations are more inclined to use Word processing software to create paper documents for the day-to-day business activities they conduct unlike a school who rarely does.

write an article for publication on why every student should be computer literate​

Answers

Answer:bankrupt

Explanation: no money on your card lol i hope you haveing a great day and i want you to know that you got this babe like is life is good then great but if not then it will get better beause you will make it get better

Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.

Answers

Answer:

Example 1:

def function(num):  

   print(num*2)

Example 2:

function(5)

num = 2

function(num)

function(3-1)

Explanation:

Given:

See attachment for complete question

To start with Example (1)

def function(num):  

   print(num*2)

Note that; the above code segment which doubles the parameter, num could have been any other code

In Example (1), the parameter is num

For example (2):

We can call the function using:

#1. A value:

function(5)

In #1, the argument is 5; a value

#2. A Variable

num = 2

function(num)

In #2, the argument is num; a variable

#3. An Expression

function(3-1)

In #3, the argument is 3-1; an expression

2) What are two reasons we analyze algorithms?
a) make decisions about what algorithms to use
b) ease of coding
c) sorting data
d) predict performance

Answers

It’s a making sections about what algorithms to use

Answer:

Make decisions about what algorithms to use

Explanation:

Select the correct answer.
Which output returns the Boolean value FALSE?
A.3
B.2
C.1
D.0

Answers

Answer:

your answer would be D.0

Explanation:

why is it important to make sure link is from a trusted source? can't we just click and if it's not what we want or
through it would be just go back?​

Answers

Answer:

First... you don't want to have to click on a million different sites

Second.... some sites have viruses, and they activated when you click on a certain source.

Explanation:

Hava great day!

Answer:

They say that it has to be from a trusted source because, you will be needing the correct and trustworthy information. Like take wikipedia for example anyone can go on there and change the information to something fake and then you have fake info in what you are writing.

Explanation:

You are 18 years old and need to write an email for the first time to a woman in her 40s( you can tell her age based on when she graduated college via he LinkedIn profile). How do you address her in the email? A. (First name) B. Hi(First name), C. Hi Ms.(Last name), D. Hi Mrs.(Last name) E. None of the above

Answers

E. None of the above

Its not formal to address someone with their first name, but it is also not right to assume if the woman is married or not.

What is the legal precedence that affects data collection and data preservation as it relates to the digital forensics process

Answers

Answer:

Following are the solution to this question:

Explanation:

Some certain laws affect collection and data preservation procedures. When an electronic crime happens, government employees must be ordered to continue with both the inquiry or permission by their senior government officials. The digital forensic investigator has to comply with the laws of a country as they apply to both the situation so if conducting out such a digital forensic analysis. Many law safeguards that rights of patients who could obstruct their investigator. Its culprit can manipulate or interfere with digital evidence until the inquirer gathers and maintains this. There are many limitations on permit study. 

When its private data is revealed, the Electronic Communications Protection Act (ECPA) has been adopted to protect the privacy rights of its ISPs' consumers. That protects people (suspect/culture) from the investigators by just not acquiring its ISP's information, in many specific regulations are affecting the process of digital forensic data collection and preservation.

1. Is the function void or return
a. void
b. return
2. What is the result of the following expression: int r = 3; r%2 == 0;
a. it evaluates as true
b. it evaluates as false
c. nothing happens

Answers

Answer:

(a) void

(b) Nothing happens

Explanation:

Solving (a): void and return

A function that returns no value is referred to as a void function.

On the other hand, a void can not be return or named return.

So, the function is void

Solving (b):

r = 3

Required

The result of r%2 == 0

Substitute 3 for r in r%2 == 0

3%2 == 0

3%2 is 1.

So, we have:

1 == 0

Hence, the equivalent of r%2 == 0 is 1 == 0.

However, nothing will happen because there is no instruction attached to the statement (i.e. r%2 == 0;)

Explain the difference between undecidable problems and unreasonable time algorithms. Be specific.

Answers

One for which no algorithm can ever be written to find the solution is an unsolvable problem. An undecidable problem is one for which no algorithm can ever be written that will always provide any input value with a correct true/false option.

An insoluble issue is one for which there is no algorithm that can ever be constructed to locate the solution. Undecidable problems are those for which there is no method that will ever be developed that can consistently return a true/false answer for any input value.

What is time algorithms?

If the value of an algorithm is constrained by a value that is independent of the amount of the input, the algorithm is said to be constant time sometimes written as time. For instance, accessing any individual element in an array requires a constant amount of time because just one operation is required to find it.

We employ a technique known as "Big O notation" to describe how time-consuming a method is. We employ a language called the Big O notation to express how time-consuming an algorithm is.

Therefore, we would argue that the insertion sort's best-case time complexity is O. (n). Linear complexity is another name for O(n) complexity.

Thus, An insoluble issue is one for which there is no algorithm.

For more information about time algorithms, click here:

https://brainly.com/question/14635830

#SPJ6

Good Morning! Please Help Me With This New Question!

In your own words, describe in detail the different types of image licensing. How does image metadata play a role in these licenses and why is that important.

Answers

Answer:

Photo metadata is a set of data describing and providing information about rights and administration of an image. It allows information to be transported with an image file, in a way that can be understood by other software and human users.

Explanation:

Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array. 14 36 31 -2 11 -6 Sample Run [14, 36, 31, -2, 11, -6] (In edhesive please)

Answers

Answer:

nums=[14, 36, 31, -2, 11, -6]

print(nums)

Explanation:

I got a 100%

Answer:

In C++:

#include <iostream>

using namespace std;

int main(){

    int nums[6] = {14, 36, 31, -2, 11, -6};

    cout<<"[";

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

    cout<<nums[i];

    if(i != 5){cout<<", ";}

    }

    cout<<"]";

   return 0;

}

Explanation:

This initializes the array

    int nums[6] = {14, 36, 31, -2, 11, -6};

This prints the opening square bracket

    cout<<"[";

This iterates through the array

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

This prints individual elements of the array

    cout<<nums[i];

Until the last index, this line prints comma after individual array elements

    if(i != 5){cout<<", ";}

    }

This prints the closing square bracket

    cout<<"]";

Ok for whoever answers this, Ill wager 20 points...
Consider the following procedures.

PROCEDURE math (ans1, ans2)
{
a ← INPUT()
b ← INPUT()
c ← math2(a, b)
e ← a + ans1
f ← b + ans2
g ← math2(e, f)
h ← c + g
DISPLAY(h)
}

PROCEDURE math2 (res1, res2)
{
d ← res1 + res2
RETURN(d)
}
What is displayed as a result of executing the following program, if when prompted, the user enters a = 3 and b = 4?

math(1, 2)

Answers

Answer:

The display will be 17.

Explanation:

Tracing through the program:

At first, math is called and sent 1 and 2 - so 1 is stored to ans1 and 2 is stored to ans2.

If the user inputs 3 for a and 4 for b, the program then calls function math2 and passed values of 3 and 4.

So now inside of math2, 3 is stored to res1 and 4 is stored to res3. Inside of this function, res1 and res2 are added together - so then 7 is stored to d and then returned back to the original function.

So now 7 was stored back to the variable c. Then a and ans1 are added together (3 + 1 = 4) and b and ans2 are added together (4 + 2 = 6). Each of these values are stored back to e and f.

Then those values, e and f (4 and 6) are again sent to math2, which simply adds the values together and returns it back to the function. So 10 is sent back to math and stored to the value of g.

Then c (7) and g (10) are added together and displayed.

Why should you delete files from your computer?


so that you will have less work to do

because only one hundred files can be saved in a directory

to increase the computer's efficiency

to improve your productivity

Answers

to increase the computer's efficiency

Explanation

The more files it holds, the more "jobs" it has to run, which means that you're computer would be using the same amount of energy running all of them as to less of them. When you close (or delete) some files, it allows the computer to concentrate on only running a smaller amount of files as oppose to a large amount.

hope it helps!

Answer:

To increase the computer's efficiency.

Explanation:

Having a bunch of files will most likely slow down your computer and make things harder to do. If you don't have a bunch of files, though, your computer will be faster and easier to guide through.

I hope this helps :)

if i want a word to be keyed in all capital letters, which is the correct proofreader's mark?

Answers

----
----
---
Three lines under a lowercase letter mean to make it a capital.

Every finger has a key it should be resting on when you are not typing
1. False
2. True

Answers

Answer:

true.

Explanation:

your point fingers should always be

your left should rest on F

your right should rest on J

the anwser is true!

Site specific situation wherein you have to write “Shortage Notations?

Answers

Answer:

Shortage Notations and the situation where you have to write down the Shortage Notations is explained below in complete detail with the situation.

Explanation:

Shortage Notations: If a portion of the shipment is missing, record the number of items shipped on the delivery slip and circle it. Then record down the number of articles missing and remark them as "short." The acquiring person is accountable for demanding the carrier to investigate the damaged goods and packaging.

It should be noted that a shortage notation occurs when the products delivered on a ship are incomplete when the ship gets to its destination.

It should be noted that shortage notation simply means when a portion of a shipment is missing, then an individual should record rte number of the items that are shipped on the delivery slip and then circle it.

Then, in such a situation, the owner of the good can then file a shortage claim later. This happens when the packaging isn't intact.

Learn more about shipping on:

https://brainly.com/question/758860

Which of the following does not demonstrate a harmful consequence of increased anonymity on the Internet?
A. Users can avoid targeted discrimination in an online forum.
B.People can create avatars to interact inappropriately with other users in
a forum
C.People can post hate speech in video comments without consequences.
D.People can easily create fake profiles to impersonate others online.

Answers

Answer: A. Users can avoid targeted discrimination in an online forum

Explanation:

Despite the many advantages that comes with social media, it also had it's own disadvantages and one of such is the increase in anonymity on the Internet.

Some of the consequences of the increase in anonymity is that people can make hate speech, create fake profiles to scam others or interact inappropriately, impersonation etc.

Therefore, the correct option will be option A"Users can avoid targeted discrimination in an online forum" as this isn't a harmful consequence of increased anonymity on the Internet.

Which of the following file formats allows you to share and save documents without a designated application? Ο
Α. HTM
B. PDF
C. JPG
D. MP3​

Answers

Answer:

B. PDF

Explanation:

For online fax service, fax documents are usually in PDF, TIFF or plain text formats.

Answer: PDF

Explanation:

a p e x

Find the quotient. 2.5 ÷ 5

Answers

Answer:

.5

Explanation:

you just divide 2.5 by 5

2.5 divided by 5 = 0.5

What is the best way to prove you did your research on a person you contact via email for help or guidance? A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background B. Tell the person generally how much you respect his/her career; if you're too specific, it will be overboard and you may turn the person off

Answers

Answer: A. Reference a specific project the person has worked on recently to show you did a deep dive into his/her background.

Explanation:

If you were to write an application letter for employment at a company, you would include certain details of the company that you found out whilst researching them so that your chances of being hired are improved.

The logic is the same here. In order to prove that you have researched a person, the proof lies in what you found out during that research. In this scenario, that includes specific projects that the person has worked on of recent.

Example of Not a computer characteristics example

Answers

Answer:

A book

A non electronic

Explanation:

Complete the statement below using the correct term.


One problem with _____
is that often many copies of the same document are made.

Answers

One problem with PRINTER is that often many copies of the same document are made.
printers or a printer !

Match each feature to whether it influences audio or video quality

Answers

Answer:

Video: Frame Rate, Color depth, Resolution

Audio: Sampling Rate, Bit Depth

Explanation:

Andrew likes to purchase his school supplies online. What are two advantages of doing so?


A.
It is possible for his information to be accessed or stolen by a third party.

B.
All his personal information is sent digitally and does not change when transmitted.


C.
Because the information is sent digitally, there are an infinite number of different signals possible.

D.
Because the information is sent quickly, he can receive his order more quickly.

Answers

Answer:

bd

Explanation:

Answer:

The answer is B.All his personal information is sent digitally and does not change when transmitted. And D.Because the information is sent quickly, he can receive his order more quickly.

Explanation:

I took AP EX quiz.

In your opinion which of the following is the most convenient way to create a bootable USB flash drive? Why?

Answers

Answer:

here

Explanation:

Plug the USB drive into your computer’s USB port.

Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context menu. This opens a small window with white text on a black background.

Type the command “diskpart” and confirm your input with the enter key (you’ll also do this after every other entered command). This starts the storage device manager.

Enter the command “list disk” to display all available storage devices.

You can recognize your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC, so a hard drive or solid state drive in your computer.

Based on the assumption that your USB has the label “disk 1”, enter the command “sel disk 1” to select it (or the corresponding “disk 2”, etc.).

Enter then command “clean” to delete all files from the USB.

Enter the command “create partition primary” to create a main partition.

Enter the command “list par” and select the newly created main partition with “sel par 1”.

Activate the partition with the command “active”.

Format the USB with the command “format fs=FAT32 label=“WINDOWSUSB” quick override” (in place of “WINDOWS USB” you can also choose another label, so long as it doesn’t contain any spaces or special characters. The drive will later be displayed under this name if you plug into a running Windows computer). Formatting may take a while. You can track its progress in the percentage bar.

As soon as the process is finished, enter the command “assign” to automatically assign a drive letter (for example “G:”) to your USB.

Enter “exit” to close DiskPart, and then “exit” again to close the command prompt

Which of the following are advantages of automatic updates?

Answers

Answer:

I think maybe b or d

Explanation:

Answer:

It's A, B, and D

Explanation:

1. lesa __________
2. didalna _______________
3 .rpeyr etlyr _____________
4. etrpoy _____________
5. rkyo ewn _____________
6. amya loagneu _____________
7. zfeorn___________________
8. msal etopry ________________
9. reyve nda gsni filt ________________________
10. tehreat lopoal ______________________
11. getas htgfir _______________
12. telsa __________________
13. diovc _____________
14. engilaenri _____________
15. atsfdofo ____________
16. rgwo pu i nhew ____________
17. tbulatyir lipcoe _______________
18. smjniae ncpiesrs __________________
19. migna ______________
20. dnaniai rgya

Answers

Penissss...?
Yes or no?

Help please not trying to fail

Answers

Answer:

B. Everywhere CFCI is not

Other Questions
HELP ME PLEASE PLEASE PLEASE!!!! IM BEGING YOU!!!!In your own words, describe in detail the different types of image licensing. How does image metadata play a role in these licenses and why is that important. Help me with this question please please An electric vehicle starts from rest and accelerates at a rate of 2.3 m/s2 in a straight line until it reaches a speed of 29 m/s. The vehicle then slows at a constant rate of 1.5 m/s2 until it stops. (a) How much time elapses from start to stop HEEEELLLLPPP ASAPSeveral important results followed. Both political parties were induced to put up cleaner, better men, for the women would not stand a notoriously corrupt or unclean candidate. The headquarters of political parties became more decent, and the polling places became respectable.Speech in Favor of Womens Suffrage, 1910,Robert OwenHow did womens suffrage impact the political process?A. Women demanded honorable politicians and orderly polling places.B. Women cleaned the headquarters of political parties.C. Women voted at separate, cleaner polling places.D. Political parties chose to ignore the demands of women. Look at the graph.On a coordinate plane, a graph increases through (negative 1, 4), levels off at (0, negative 3), and then increases up through (2, 5).Leslie analyzed the graph to determine if the function it represents is linear or non-linear. First she found three points on the graph to be (1, 4), (0, -3), and (2, 5). Next, she determined the rate of change between the points (1, 4) and (0, -3) to be StartFraction negative 3 minus (negative 4) Over 0 minus (negative 1) EndFraction = StartFraction 1 Over 1 EndFraction = 1. and the rate of change between the points (0, -3) and (2, 5) to be StartFraction 5 minus (negative 3) Over 2 minus 0 EndFraction = StartFraction 8 Over 2 EndFraction = 4. Finally, she concluded that since the rate of change is not constant, the function must be linear. Why is Leslie wrong?The points (1, 4), (0, 3), and (2, 5) are not all on the graph.The expressions StartFraction negative 3 minus (negative 4) Over 0 minus (negative 1) EndFraction and StartFraction negative 3 minus (negative 5) Over 2 minus 0 EndFraction both equal 1.She miscalculated the rates of change.Her conclusion is wrong. If the rate of change is not constant, then the function cannot be linear. What kind of economy uses a free-enterprise system? XWV ~ EDC. Find the length of EC. Ill give u a kiss if u help me with this ASAP plzzz ;) with an explanation too plzzzz Secondary insomnia is *O treated with a CPAP machine.O prompted by an underlying medical disorder.O far less common than primary insomnia.O almost always a result of stress. if there are 36 students and the ratio of girls to boys 5:4 how many girls and boys would there be PLZZ HELP !!!! Discuss the impact of Julius Caesae's achievements that still have influence in 2021 Create an equation modeling the scenario. Use the equation to solve for the missing number. In your final answer, include the equation and all necessary calculations. Twice the sum of a number and seven is three times the number. What is 18 divided by 1/4? How is writing a speech different than writing anessay? How does emotion play a role in a speech? Jenny has some tiles in a bag. The tiles are of three different colors: purple, pink, and orange. Jenny randomly pulls a tile out of the bag, records the color, and replaces the tile in the bag. She does this 50 times. The results are recorded in the given table:Color of Tile Purple Pink OrangeNumber of times the tile is drawn 4 24 22What is the experimental probability that Jenny will pull out a pink tile? (1 point)Group of answer choices22 over 5022 over 2824 over 504 over 50 cause and effect of mexican american war incompromise of 1850 In a bag of skittles, there are 124 pieces. 25% are red. How many skittles are NOT red? Put the numeric answer only. Find the quotient.52.06 divided by 1.9 1.4 l have spread my dreams under your feet, Tread softly because you tread long essay Which of the following statements is FALSE?a.Windmills improved irrigation in dry regions in Texas and opened them up to successful farming.b.The climate of Texas was good for producing cotton crops.c.Mills emerged mostly in North Texas and became a very important industry.d.The presence of ranchers forced farmers to switch to growing cotton and sugarcane.