Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # str_insert.py -- since string objects do not support item assigning...
- def insv(i,ins,v):
- s=v[:i]+str(ins)+v[i:]
- return s
- py = 'Thank You, Python World!'
- py = insv(9,' Very Much', py)
- print py
Add Comment
Please, Sign In to add comment