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

Why lambda forms in python do not have statements?

869


Which website is best for learning python?

870


What is python interpreter?

805


Is yield a keyword in python?

787


Which methods of python are used to determine the type of instance and inheritance?

836


What is instance method?

873


Define the support for apex that exists?

902


What is the output of the following?

856


What is the difference between remove() function and del statement?

1005


What is the output of the following code and why?

850


How do I check whether a file exists without exceptions?

806


How ternary operators are used in python?

979


What is flatmap in python?

758


How to save an image locally using python whose url address I already know?

894


Is Python an easy-to-learn language

904