Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def comma_and_iter(s):
- separ = ', '.join(s[:-1])
- return "Your items are {0}, and {1}.".format(separ, s[-1])
- comma_and_iter(["thing x", "thing y", "thing z"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement