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 / glibwaresoftsolutions

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 would you check if MySQLdb is installed?

1030


What is python keyword?

851


Is del the same as remove()? What are they?

893


Why do we want to use break statement in while-loop?

811


What is sphinx linux?

838


How do you upgrade pip?

846


Explain the use of with statement?

802


How to check the string consists of alphanumeric characters ?

991


What is flask-wtf and what are their features?

845


What are functions in python?

888


What is head and tail method for data frames in pandas ?

874


Is string empty python?

856


What are the rules for global and local variables in python?

911


What is dogpile effect? How can you prevent this effect?

886


Which is better PHP or Python?

940