Q:

What is “Call By Value” in Python?

0

What is “Call By Value” in Python?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer :

In, call by value, a parameter acts within the function as a new local variable initialized to the value of the argument (a local copy of the argument). Any changes made to that variable will remain local and will not reflect outside the function.

If you pass immutable arguments like integers, strings or tuples to a function, the passing acts like call-by-value.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Python Interview Questions and Answers

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What Is “Call By Reference” In Python?... >>
<< What Is The Return Value Of The Trunc() Function i...