How to Replace a String in Python (Sample Code) – Real Python