On Wednesday, May 27, 2015 at 3:39:33 PM UTC-7, Alex Glaros wrote:
>
> correct data now appears for first var, but what is syntax for two vars in 
> dictionary?
>
> E.g., varsdict[cancel_1a]=cancel_1b* + varsdict[cancel_2a]=cancel_2b*
>
> I've tried looking it up and every possible combination
>
>
You don't really have a '+' in your code there, do you?

2 separate statements should do it:
varsdict[cancel_1a]=cancel_1b
varsdict[cancel_2a]=cancel_2b


as shown by
>>> t4 = dict()
>>> t4['albert']='victoria'
>>> t4['phillip']='elizabeth'
>>> print t4
{'phillip': 'elizabeth', 'albert': 'victoria'}
>>> 

(Yes, proper names should have an initial capital letter. I'll do better 
next time.)

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to