
string = "Don't panic"

# one version
for tup in enumerate( string):   # tup will be a tuple of (index, item)
    i, ch = tup                  # tuple unpacking
    print ch, i,                 # we prevent a newline using the trailing comma

print   # to finish the line


# there is a more elegant way still
for i,ch in enumerate( string):   # the unpacking is done here
    print ch, i,

