1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
xz_007 [3.2K]
3 years ago
10

Functions that do not return values _________.

Computers and Technology
2 answers:
ASHA 777 [7]3 years ago
6 0

Answer:

Functions that do not return values do not have return statements.

Explanation:

Lets take an example of a function in Python

def FunctionName(arguments)

function body  

The function that do not return value does not need to have a return statement.

It works the same as void function C++

The function that do not return values and has no return statements will end when the program control reaches end of the function body. This works same as void but in Python None is returned when such a function ends successfully. None is a special value which is returned in functions that do not have return statements.

Lets take an example of a few functions that have return values and that do not have return values.

def addition(x,y):

   a = b + c

summ = addition(1,2)

print(summ)

This function has no return values so there is no need to have a return statement. This will print None in the output

Another example is of the function that has a return statement and return values.

def addition(x,y):

   a = b + c

   return a

summ = addition(1,2)

print(summ)

Now this will give 3 as output and here return c is written which means that the function returns values.

seropon [69]3 years ago
3 0

Answer:

Do not have return statements.

Explanation:

In programming, a function is a block or group of program statements, specifically written to execute a given task. It is defined in any point of the program and called upon to interrupt the normal program flow.

Functions have locally defined variables and can also use global variable as well. When it is called, it may or may require an argument and a return statement of the needed parameter is defined. The return void statement returns a 0 value.

If a function is defined, but not called, it will not be executed and if a return statement is not defined in the function, it executed function would not return any value to the normal program flow.

You might be interested in
The _____ icon allows the user to improve the brightness, contrast, or sharpness of the picture.
bija089 [108]

Answer:

The Corrections icon

Explanation:

In Office 2010, 2013, 2016, you can adjust the brightness, contrast, and the sharpness of a picture. This can be achieved by using the corrections tool. Assuming you already have the picture, click on it and on the Format tab, under the Pictures tools, in the Adjust group, click Corrections. Under the Sharpen/Soften or the Brightness/Contrast, you can click the thumbnails that you want to make adjustments.

4 0
3 years ago
Your program is going to compare the distinct salaries of two individuals for the last 5 years. If the salary for the two indivi
kirza4 [7]

In python:

i = 1

lst1 = ([])

lst2 = ([])

while i <= 5:

   person1 = int(input("Enter the salary individual 1 got in year {}".format(i)))

   person2 = int(input("Enter the salary individual 1 got in year {}".format(i)))

   lst1.append(person1)

   lst2.append(person2)

   i += 1

if sum(lst1) > sum(lst2):

   print("Individual 1 has the highest salary")

else:

   print("Individual 2 has the highest salary")

This works correctly if the two individuals do not end up with the same salary overall.

4 0
3 years ago
In computer science, what is the name for a series of steps used to solve a problem?
liraira [26]

Answer:

Algorithm

Explanation:

It is the step by step procedure,which defines a set of instructions which is to be carried out by the computer

5 0
3 years ago
Find the total cost of a $125 coat purchased in Los Angeles County where the sales tax is 9%. Use the expression c + 0.09c
Keith_Richards [23]
The answer is B I believe
7 0
3 years ago
Match the parts of the website address with its correct explanation. http://www.usa.gov/Agencies/federal.shtml
storchak [24]

HTTP means Hyper Text Transfer Protocol underlying protocol used by the World Wide Web(www).

usa is the server name which is used address in the DNS record

.gov is the Domain names which  are used to identify more then one IP addresses

Agencies/federal.shtml a directory is a collection of file resources also called the resource ID.

6 0
3 years ago
Read 2 more answers
Other questions:
  • An administrator needs to set up an authentication server for users connecting to a network through a VPN. What kind of server c
    10·1 answer
  • Ok, so this isn't a tech question it's about a game, moomoo.io so don't hate on this if you don't know it, 40 points to whoever
    12·2 answers
  • There was an airplane crash, every single person on board died, but yet two people survived. How is this possible?
    5·2 answers
  • Which option allows you to view slides on the full computer screen?
    11·1 answer
  • Keyboard question: <br> How do I make the 'congruent to' symbol on this keyboard?
    8·1 answer
  • Write a class for a Cat that is a subclass of Pet. In addition to a name and owner, a cat will have a breed and will say "meow"
    14·1 answer
  • Ohanians “great big secret” is that:
    8·1 answer
  • 2. How is accessing the Internet through a home network and public Wi-Fi similar?​
    15·1 answer
  • What are the process of boots up a computer?​
    15·2 answers
  • Office 365 ProPlus can be deployed to your enterprise. When doing so, which tool enables you to choose the language, hardware ar
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!