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.