Advertisement
here2share

# str_basic_insert.py

Sep 7th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.07 KB | None | 0 0
  1. # str_basic_insert.py
  2.  
  3. text = 'abcxyz'
  4. print text[:3] + '123' + text[3:]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement