Finish exercise 39. Note: Items within a list cannot be printed directly, it can be popped out and add to a string before the contents can be printed.