Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def add_space_to_string(string):
  2.     return string[0:len(string) - 2] + ' ' + string[len(string) - 2:]
  3.  
  4. print(add_space_to_string('hello'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement