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

Mention the rules for local and global variables in python?

914


What is frozen set in python 3?

903


What are the arithmetic operators that python supports?

968


What is thread join in python?

890


What is anaconda program?

1062


How to convert a number to a string?

950


What is python? What are the benefits of using python?

946


Does python has private keyword in python ? How to make any variable private in python ?

870


How to convert a string into datetime?

1081


What is namespace in Python?

1469


What is polymorphism in python with example?

987


What does stringvar.strip() does?

987


Explain split() and join() function.

904


How are the functions help() and dir() different?

1015


What is dict when we have to use ?

954