I’m new to python. I would like to trim a string only if it’s last 6 digits are zeros.
I checked the strip() methods, but I don’t see one that indicates the n number of characters to trim from right.
sample string:
20121124000000
result string should be:
20121124
or define a function: