0

Python Data Structures Quiz 20.1

I tried to answer Which of the following can be used as a key for a dictionary? quistion in the quiz 20.1 but do not accpet any answer; I am sure that the answer is string but do not accept it.

22nd Dec 2022, 10:45 AM
Farhan ALFİN
Farhan ALFİN - avatar
2 odpowiedzi
+ 4
Farhan In dictionary key values are immutable so string and tuple are used as key go through the lesson for better understanding
22nd Dec 2022, 10:54 AM
Riya
Riya - avatar
+ 4
Farhan , in the quiz are not all possible data types mentioned, we can also use int or float values as keys. also boolean values like True orFalse can be used.
22nd Dec 2022, 3:54 PM
Lothar
Lothar - avatar