Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # at_nth_occurence.py
- def oSplit(z,nth):
- z=z.split('_')
- z='_'.join(z[nth:])
- return z
- print oSplit('xyz_1st_2nd_3rd_4th_5th_6th',4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement