+ 1

is there any rule to declare key?

24th Jun 2016, 2:24 AM
Rahul
3 Answers
+ 1
It has to be an immutable object . Mutable objects cannot be used like list and dictionary. So key can be string,integer etc
10th Jul 2016, 5:12 AM
Ganesh G
Ganesh G - avatar
0
key has to be immutable, it doesn't matter int or str, but not list)
22nd Jan 2017, 6:31 PM
Mykhailo Dvurechenskyi
Mykhailo Dvurechenskyi - avatar
- 1
It should be string only
11th Aug 2016, 7:03 AM
Manas Solanki
Manas Solanki - avatar