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 to sort a dictionary by value in python?

782


What command do we use to debug a python program?

833


What is abstraction in python?

822


What are built in types in python?

890


What is __init__.py for?

754


What is the word for 6 times?

791


What is the usage of help() function in python?

803


In what language is python written?

801


Explain try, raise, and finally?

824


What is numpy logspace?

872


What flask is and its benefits?

862


What are the two ways to use python interpreter?

909


How does xrange work in python?

757


What is the meaning of @classmethod and @staticmethod ?

897


Tell me how do you debug a program in python? Is it possible to step through python code?

753