[Tutor] Rotating an array?

Bob Gailer bgailer at alum.rpi.edu
Sun Nov 19 20:26:50 CET 2006


The OP (whose email address I don't have) requested a 90 degree ccw 
roatation.

transposed = zip(*twisted) # gives the 90 degree cw roatation
transposed.reverse() # does the 180 degree rotation leaving us at 90 
degreee ccw

-- 
Bob Gailer
510-978-4454



More information about the Tutor mailing list