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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to