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

What are class or static variables in python programming?

898


Write a program to convert all strings in list to integers?

823


What is pycharm used for?

896


How do you monitor the code flow of a program in python?

962


Calling an external command in python?

857


Can we return a string in python?

863


Write a program to show the singleton pattern used in python.

829


python is case sensitive ?

847


How do you copy an object in python?

932


Is it easier than Django bottle?

969


How to python script executable on unix?

1050


What is the difference between Xrange and range?

1047


What is sockets? Explain.

921


What does code coverage mean?

794


What are the nameless functions in python?

839