Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. d = ["one", "two", "three"]
  2.  
  3. dstring = ("{}n"*(len(d)-1)).format(d)
  4.  
  5. print(dstring)
  6.  
  7. d = ["one", "two", "three"]
  8. res = 'n'.join(d)
  9. print(res)
  10.  
  11. one
  12. two
  13. three
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement