
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
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.
Advertisements