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

Explain how to redirect the output of a python script from standout(ie., A monitor) on to a file?

931


How are uuid generated?

822


Is java better than python?

847


Why do we need tuples?

950


How do you create a project in python?

1075


What is a dataframe in python?

1059


How do you show hello world in python?

985


Which all are the operating system that Python can run on?

1002


How do I share global variables across modules?

948


What is the script in python?

952


What do you mean by list comprehension?

1041


Is print a keyword in python?

836


What is strip in python?

903


Is string empty python?

921


What are the disadvantages of the Python programming language?

1055