remove single and double quotes from string python

Solutions on MaxInterview for remove single and double quotes from string python by the best coders in the world

showing results for - "remove single and double quotes from string python"
Simona
09 Oct 2019
1a_string = '"ab"cd"'
2stripped_string = a_string.strip('"') # Only removes quote marks at each end
3									  # of the string.
4print(stripped_string)  #Output: ab"cd
5
6replaced_string = a_string.replace('"',"") #Removes al quote marks from 
7										   # string.
8print(replaced_string) #Output: abcd
queries leading to this page
how to remove single quotes from list of values in pythontwo time quotes in string python remove outer single quotehow to remove extra quotes from string in pythonremove single quotes pythonremove the double quotes from string in pythonremove single quotes from string in pythonremove single quotes python3remove double quotes from string in pythonstrip double quotes pythonpython remove single quotes from stringpython remove double quotes from a stringremove single quotes from a string pythonhow to strip double quotes in pythonpython string exclude text between quotesremove double quotes from string list object pythonremove double quotes from string pythontwo time quotes in string python remove onepython remove single quotes from string listhow to skip double quotes in python stringpython remove double quotes from stringstring remove double quotes pythonpython remove comma between quoteshow to remove single quotes within single quoted strings in pythonhow to remove single quotes from string in pythonignore double quotes in string pythonremove all quotes from string pythonpython remove single quotes from listpython list remove double quotesremove single quotes from a list pythonhow to remove double quotes from a list in pythonhow to remove double quotes from list of string in pythonpython double quotes remove in stringremove double quotes from list of string pythonfind a string in double quotes within a string and replace it pythonstrip double quotes from string pythonremove single quotes from list pythonremove outer quotes from string pythonhow to remove all double quotes between a double quotes in pythonremoving double quotes from a string in pythonpython strip double quoteshow to remove string inside single quote of pythonremove double quotes from a string pythonremove double quotes in pythonhow to remove single quote in pythonremove double quotes symbol from string in pythonhwo to remove double quotes from symbol in pythonhow to ignore double quotes in pythonstrip double quote in string pythonhow to remove double quotes from string in pythonstring to list remove single quotespython strip single or double quoteshow to not remove single quotes from string in pythonhow to ignore double quotes inside string in pythonif i have double single quotes how do i remove just one quote string pythonhow to remove single quotes from string pythonremove single quote from string pythonpython substitute single quotes for double quotespython remove double quotes from listremove single quotes from string pythonremove double quotes from string list pythonpython remove double quote from stringremove single and double quotes from string python