Explain about python’s parameter passing mechanism?
Answer / Dharmendra Yadav
In Python, arguments can be passed to functions in two ways: by value and by reference. By default, Python passes arguments by object reference (call by object), meaning the function receives a reference or address of the object, not a copy of it. However, for numeric types like integers and floating-point numbers, Python behaves as if they are passed by value because these types are immutable in Python.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to check if string A is substring of string B?
What is a function for flatten an irregular list of lists?
What is polymorphism in python?
What are “special” methods in python?
Is there any equivalent to scanf() or sscanf()?
Can you learn python with no experience?
Is python numpy better than lists?
1 What is Python?
What is reindexing in pandas?
What is json? Describe in brief how you’d convert json data into python data?
Tell us something about python iterators.
How will you uit the python?