[Tutor] syntax question

Eric Abrahamsen girzel at gmail.com
Wed May 21 14:27:40 CEST 2008


Hi all,

This is a syntax that I've seen on occasion in other people's code:

theme = (VALID_THEMES[0], theme) [ theme in VALID_THEMES ]

I have no idea how this works, or how to go about looking it up. Can  
someone enlighten me as to what's happening here?

Many thanks,
Eric


More information about the Tutor mailing list