I want to know if there is a way to have a default value in a dictionary (without using the get function), so that:
dict colors = {
"Black":(0, 0, 0),
"White":(255, 255, 255),
default:(100, 100, 100)
};
paint(colors["Blue"]); # Paints the default value (Grey) onto the screen
Of course, the code above wouldn't work in Python, and I have serious doubt it is even possible.
I Know that by using get I could do this easily, however I'm still curious if there is any other way (just for curiosity).