How to pass arguments by value in Python function?


For given code the output is as follows

b = 30
a = ['10']

In this case, "a" seems to be passed by value, because the value is  unchanged even after the call to the function. So it is clear that the arguments have been passed by value in the python function.

Updated on: 27-Sep-2019

558 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements