Advertisement
Guest User

join and split

a guest
Oct 14th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. x = "some text and stuff like 1 2 3 yeh"
  2. print(x, type(x))
  3. x = x.split()
  4. print(x, type(x))
  5. x = " ".join(x)
  6. print(x, type(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement