I
I
Ilya Kanyshev2018-05-17 19:05:17
Python
Ilya Kanyshev, 2018-05-17 19:05:17

Returning function values?

How should the function function be declared so that this code:

tmp = 0
function(tmp)
print(tmp)

Returned only the value 3 of the tmp variable without using exit and errors (returning values ​​to passed parameters)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pugachev, 2018-05-17
@ikanyshev

like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question