606277 (1) [Avatar] Offline
I though the answer in the book was quite a few lines so I played around and came up with a two line answer to the problem. Just thought I'd share it for others who might be looking for a more compact way to do this exercise.

t = ("echo",)
t = (t * 3) + (t[0][1:4],)*3 + (t[0][2:4],)*3 + (t[0][3:4],)*3

Basically it is grabbing the first item in the tuple and extracting out the substring in another tuple and doing the multiplication all in one line.