Using Python v2, is there a way to ignore a value in a string if it is there?
For instance: I want someone to enter a value of $100.00, or they could enter a value of 100.00 without the leading $ symbol. What I want to do is ignore the ‘$’ value if it is typed in.
Any push in the right direction would be appreciated.
Maybe
The
.strip()strips whitespace from the beginning and the end of the string, and the.lstrip("$")strips a dollar sign from the beginning, if present.