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

How do you handle exceptions with try/except/finally in python?

840


What’s the difference between a for loop and a while loop?

832


Which database is best with python?

882


What are accessors, mutators, and @property?

875


Explain how can you access a module written in python from c?

904


What is sphinx linux?

835


What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

856


Are there any interfaces to database packages in python?

898


Explain about assert statement?

867


Write program to validate the email address in python?

857


Explain python is one line?

828


How can you handle multiple exception in python?

981


What is a docstring in python?

920


What does kwargs mean?

803


How do you implement json given that python is best suited for the server-side application?

885