Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How are arguments passed by value or by reference in Python?

Answer Posted / nashiinformaticssolutions

In Python, arguments are passed by assignment, meaning that the reference to an object is passed to the function. Immutable types (like integers, strings, tuples) behave like "pass-by-value" because their content cannot be modified, while mutable types (like lists, dictionaries) behave like "pass-by-reference" because their content can be modified.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain between deep and shallow copy?

826


What is the difference between = and == in python?

2097


What happens if an error occurs that is not handled in the except block?

847


How does Python handle the memory management?

951


How to make any variable private in python ?

869


How do I share global variables across modules?

906


What is python distutils?

862


What is sphinx python?

905


Does python do until loop?

821


What are the rules for legal python names?

979


Can we use angularjs with python?

808


Why is python good for machine learning?

885


How to convert bytes to a string?

1006


Tell me how does python handle the memory management?

951


What is docstring? How to define it?

963