How to remove quotes from string in Python

We can use replace utility in Python to remove quotes from string.

Example script is shared below.

text = '"dshbfdsksdnf" "hdksdjnkjndk"'
text = text.replace('"', '')
print (text)

Here the output will be a string without quotes.

That's all…

Leave a Reply

Your email address will not be published. Required fields are marked *