Python
Only immut ...
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
Only immutable data types can be used as keys for dictionaries in Python. True or False?
True
False
Explanation
Any hashable object can be used as dictionary key, Immutable data types are subset of all hashable objects, but this relation is not exhaustive. For example, you can define your own class with a __hash__ method in it and use it as a dictionary key.
Подобається
Ввійдіть
щоб вподобати
Комментувати
Ввійдіть
щоб прокоментувати
Поширити
Tweet
Тести з
P
ython
Приєднуйся і вивчай Python
або
Дізнайся більше про
Тести з Python онлайн
Слідкуй за CodeGalaxy
Мобільний додаток Beta
Зворотній Зв’язок
Продовжуйте вивчати
тести з Python
What will be the result of code execution? var obj = { "first":"first", "2":"2", "34":"34", "1":"1", "second":"second" }; for (var i in obj) { alert(i); };
What will be the result of code execution? (function(){ return typeof arguments; })();
What will be the result of code execution? console.log(typeof x, typeof String, typeof String.prototype, typeof String.prototype['concat']);
Consider following HTML snippet: <p> <span>Something_1</span> <span>Something_2</span> </p> What will be the result of the execution following code? $('span').wrapAll('<div></div>');
Which sign does jQuery use as a shortcut for jQuery?
Consider following HTML snippet: <p>first paragraph<p> <p>second paragraph<p> <p>third paragraph<p> What is the correct jQuery code to set the background color of all p elements to red?
Зареєструйся Зараз
або
Підпишись на майбутні тести
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати