Code 85
Published in

Code 85

How to Remove a Prefix from a String in Python

The old way and the new way

Photo by Brett Jordan on Unsplash

Nothing warms my heart more than string manipulation — yes, this is sarcasm. Managing strings is not glamorous, it’s not mentally rewarding, but it is a common requirement. Therefore, I do my best to find built-in tools or build reusable tools for the same task.

--

--

--

Plain language programming tutorials for non-developers

Recommended from Medium

How to boost your pages SEO with JSON-LD (Structured Data)

Print “Hello, World” with shellcode

Why doing an instant ADA website compliance review is a terrible idea

Three vendors’ instant ADA testing options, screenshot on December 21, 2021

Transition from Manual to Automation Testing.

LeetCode - Sentence Screen Fitting

No-Bullshit Guide To Microservices

Launch time arrived / 22 Apr 22

Cricket Captain Free Download

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonathan Hsu

Jonathan Hsu

Top writer with 2.5M+ views. https://medium.com/@jhsu98/membership

More from Medium

3 ways I improved my Python code last year

Python is the Programming language of the Year🏆

Learning To Write Better Python Code

Tuple in Python : Creating, Accessing Tuple