Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Remove Leading Zeros From A Python String With .lstrip()

Passing a zero to [TODO: Code shorthand span ] will remove leading zeros instead of trimming leading whitespace

python
original = "0001234"
    
stripped = original.lstrip('0')
    
print(stripped)
results start