4 ms·
This is my preferred method for Python (faux-)switches: cuil_buzz = { 1: 'All the rage!', 2: 'Worst product e-v-e-r.', 3: ' ... ' }.get(d
by dmpayton 18y ago
This is my preferred method for Python (faux-)switches:
cuil_buzz = {
1: 'All the rage!',
2: 'Worst product e-v-e-r.',
3: ' ... '
}.get(day, None)