Hello.
Example: Delete all commas that appear before the first period. And replace with a plus all the numbers 3, which stand after the first point.
I wrote such a piece of code, I don’t know how to put a restriction further:
S = input(': ') S = S.replace('3', '+') S = S.replace(',', '') print(S)