I would like to edit the string in a give line of string.
Expand|Select|Wrap|Line Numbers
- Sample
- >>> str1 = 'Pnt1 1000 1 2 3 '
- >>> str2 = str1[:8]
- >>> str3 = '2000 '
- >>> str4 = str2 + str3 + str1[16:40]
- >>> str4
- 'Pnt1 2000 1 2 3 '
Any slicing mechanism or any other idea ,will help me
Thanks
PSB