Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = "John Smith went to the store"
- test = test.split()
- first = test.pop(0)
- test[0] = f'{first} {test[0]}'
- print(test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement