How are arguments passed into functions in Python?
It depends on the data type of an argument. Immutable data types are passed by value (effectively a copy of value is created) while mutable data types are passed by reference (reference to an object is passed into function).

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Python quizzes
Sign Up Now
or Subscribe for future quizzes