55.9k views
0 votes
What is a return statement used for?

o beginning a function
O repeating a value
copying a function
exiting a function
DONE

User Clif
by
5.9k points

1 Answer

3 votes

Answer:

Exiting a function

Step-by-step 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.

User Vivek Salve
by
5.9k points