in reply to List manipulation headache

Show your code, the output you get, and how its different from the output you want. How do I post a question effectively?