Jump to content

Conditional structures: Difference between revisions

Line 3,030:
}
# ...
results = dispatcher.get(x, boz)()</lang>
 
<lang python># Or without the temp variable
# (it's up to the reader to decide how "pythonic" this is or isn't)
results = {
{
0: foo,
1: bar,
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.