How can I strip first and last double quotes?

If the quotes you want to strip are always going to be “first and last” as you said, then you could simply use:

string = string[1:-1]

Leave a Comment