The most common answer is:
def return_ten():
return 10
print(return_ten())
x = return_ten()
print(x + 1)
First, it prints the number 10, which is the value returned by the return_ten()
function. Then, it prints 11, which is the result of adding 1 to the returned value.
Leave a comment