(string)
Remove quotes from around a string.
Remove quotes from around a string.
Remove quotes from around a string .
def dequote(string):
    """Remove quotes from around a string."""
    if ( ( string.startswith('"') and string.endswith('"'))
         or (string.startswith("'") and string.endswith("'")) ):
        return string[1:-1]
    else:
        return string
def dequote ( string ) : if ( ( string . startswith ( '"' ) and string . endswith ( '"' ) ) or ( string . startswith ( "'" ) and string . endswith ( "'" ) ) ) : return string [ 1 : - 1 ] else : return string