In Python, when you pass a list to a function, you pass it by reference. | Python Programming

preview_player
Показать описание
In Python, when you pass a list to a function, you pass it by reference. So modifying a list from inside that function will result in a modified list after you return from it.

#function #listdata #passbyreference
#python #python3 #development #developer #programming #it #coding #program #programmer #programminglanguage #code #coding #pythonprogramming #pythoncode #software
#softwaredeveloper #geek #computers #learntocode #learnpython
Рекомендации по теме
Комментарии
Автор

I remember the time when I scratched my head to find how to pass by reference.

earthk
join shbcf.ru