Which is the proper way to write this code
getter = {
0 : "value_1",
1 : "value_1",
2 : "value_1",
3 : "value_2",
4: "value_3"
}
and get the values as
for k in keys:
value = getter[ keys ]
#.. then, you do other stuffs with the picked value
I want to avoid repeating "value_1"rows for different keys on dictionary declaration.