Remove Single And Double Quotes From String Python

[Solved] Remove Single And Double Quotes From String Python | Vb - Code Explorer | yomemimo.com
Question : remove single and double quotes from string python

Answered by : nicolas-ramirez

a_string = '"ab"cd"'
stripped_string = a_string.strip('"') # Only removes quote marks at each end # of the string.
print(stripped_string) #Output: ab"cd
replaced_string = a_string.replace('"',"") #Removes al quote marks from # string.
print(replaced_string) #Output: abcd

Source : https://www.kite.com/python/answers/how-to-remove-quotes-from-a-string-in-python | Last Update : Thu, 13 May 21

Answers related to remove single and double quotes from string python

Code Explorer Popular Question For Vb