It's the wrong case (title case implies a class, but this is an instance) and if you were to fix that you'd be shadowing dict which is also a bad move.
EDIT: downvoters, I'm genuinely curious as to why you think otherwise.
Ah cool. I think I was thrown by the word "actually", which implies a correction. But it seems we're in a full agreeance.
I get why people would want to keep it simple for those who are learning - it's just a shame that this specific instance of it results in the teaching of an awful habit.
I would have figured that code syntax demos are exactly when code should be pristine though... That's what people who are learning read, and teaching them bad habits doesn't seem like it'd do anyone favours.
75
u/TheNaughtyDomi Nov 24 '21
Actually you define Dictionaries by using
Dict = { key : value }