How does Python pass in variables to functions 🐍 #shorts

preview_player
Показать описание
Most languages pass in parameters as values or references or both. Python uses assignments. If the object is mutable, changes that occur inside the function affect outside. If the object is immutable, the outside variables are not affected.
Рекомендации по теме