I have a list of numbers in Python all with a extra space in the front. How do I remove the extra space (so that only the numbers are left)? A short example is below (note
For your case, with a list, you can use str.strip()
l = [x.strip() for x in List]
This will strip both trailing and leading spaces. If you only need to remove leading spaces, go with Alex' solution.