Try this:
$for a,b in enumerate(['Gener', 'Febrer', 'Març']):
...
On 5 jun, 04:58, Ferran Fontcuberta <[email protected]> wrote:
> Hello, listers!
>
> There is a way to avoid the intermedium var in this?
>
> $ aa = {1: 'Gener', 2: 'Febrer', 3: 'Març'}.items()
> $for a,b in aa:
>
> If i try to do with
>
> $for a,b in {1: 'Gener', 2: 'Febrer', 3: 'Març'}.items():
>
> I'm getting:
>
> for a,b in loop.setup({1):
> ^
> SyntaxError: invalid syntax
>
> Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---