Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d = ["one", "two", "three"]
- dstring = ("{}n"*(len(d)-1)).format(d)
- print(dstring)
- d = ["one", "two", "three"]
- res = 'n'.join(d)
- print(res)
- one
- two
- three
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement