Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Delete(theString, Start, noChar):
- Index = Start
- theStringLength = Stringlength(theString)
- theString = list(theString)
- while Index < theStringLength - noChar:
- theString[Index] = theString[Index + noChar]
- Index += 1
- while Index < theStringLength:
- theString[Index] = ""
- Index += 1
- newString = ""
- for i in theString:
- newString += i
- return newString
Add Comment
Please, Sign In to add comment