Python
How are ar ...
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
How are arguments passed into functions in Python?
By value
By reference
Depends on the data type
By copy
Explanation
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).
Подобається
Ввійдіть
щоб вподобати
Комментувати
Ввійдіть
щоб прокоментувати
Поширити
Tweet
Тести з
P
ython
Приєднуйся і вивчай Python
або
Дізнайся більше про
Тести з Python онлайн
Слідкуй за CodeGalaxy
Мобільний додаток Beta
Зворотній Зв’язок
Продовжуйте вивчати
тести з Python
What is a correct term for the following piece of Python syntax: 3 + 4
What is a result of following code block execution: a = b = [1, 2, 3] b[2] = 4 print(a)
Is it possible to link a Python program to code written in C?
What will the output of the following statement be? print "%s is awesome !" % python
In Python 2, if a class is declared using new-style classes like Child(Base), what is the correct way for a method foo() to call its base implementation?
Python packages can be imported from inside a Zip file.
Зареєструйся Зараз
або
Підпишись на майбутні тести
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати