

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to pass arguments by reference in a Python function?
For the given code we the following output
b = ['10', '20'] a = ['10', '20']
Explanation:
This indicates that the variable "a" was passed by reference because the function alters its value in the main script.
- Related Questions & Answers
- How to pass arguments by reference in Python function?
- How to pass arguments by value in Python function?
- Pass by reference vs value in Python
- Pass by reference vs Pass by Value in java
- How are arguments passed by value or by reference in Python?
- Is java pass by reference or pass by value?
- Is JavaScript a pass-by-reference or pass-by-value language?
- Describe pass by value and pass by reference in JavaScript?
- How to pass an array by reference in C++
- Differences between pass by value and pass by reference in C++
- What is Pass By Reference and Pass By Value in PHP?
- How to pass arrays as function arguments in JavaScript?
- Pass an integer by reference in Java
- Explain javascript pass by reference in javascript?
- How do we pass parameters by reference in a C# method?
Advertisements