Q:

How do I add all of the items from a list to a variable?

I'm a complete beginner in Python and have come up against a problem that I can't solve. I have a variable called body which I am passing into a function to send in an email. I then have a list named items which I want to put in the body of the mail.
My code looks like this:
body = "The following items are in the list:"

How do I append all of the items in items list onto the end of the string in the body variable?

A:

Something like this should do:
body = str("The following items are in the list: ")
items = ["a", "b", "c", "d"]  # list of strings
for i in items:
    body = body.__add__(i + ",")
print(body)

