I'm trying to delete a certain number of zeros at right. For example:
I want to remove 4 zeros... And get:
I tried to do string.rstrip("0") or string.strip("0") but this remove all of zeros at right. How can I do that?
The answer is not duplicated because I can't use imports.

View Solution