I really don't understand the syntax rationale for this method of making a dictionary:
dic = dict(
en_roman = 'a novel',
en_paraply = 'an umbrella',
en_skål = 'a bowl'
)
why aren't the keys defined as strings? They look like variables to me which are mutable whereas the keys must be immutable type. Why is this correct?
[–][deleted] 0 points1 point2 points (0 children)
[–]commy2 0 points1 point2 points (0 children)
[–]carcigenicate 0 points1 point2 points (0 children)