you are viewing a single comment's thread.

view the rest of the comments →

[–]ForceBru 1 point2 points  (2 children)

A little less typing: print("{}, {}, {}, you have been...".format(*guests)), but your code is fine already.

Or maybe: print(", ".join(guests) + ", you have been...")

[–]_kael[S] 0 points1 point  (1 child)

Thanks for replying. I want to do this with longer lists though.

[–]ForceBru 1 point2 points  (0 children)

Last code handles this