Remove First N Characters from String using Python

Slicing

text = 'HelloWorld!'
n = 5
result = text[n:]

print(result)  # World!

Leave a Comment

Cancel reply

Your email address will not be published.