On Fri, Aug 19, 2011 at 12:49, Aaron Toponce <[email protected]> wrote: > python -c 'for i in range(1,101):print"FizzBuzz"[i*i%3*4:8--i**4%5]or i'
Very cool. Would you explain that for me please? I can figure part of it, but I'm not familiar with the '--' operator in this context. Hazarding a guess, based on the output; "FizzBuzz"[x:y] ... x is offset. I can't find anything referencing "string"[x:y] for python so I'm at a loss as to what that part is doing. -- Alan Young -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
