(string)
return string
Remove quotes from string.

    Ex.:
      "foo" -> foo
      'foo' -> foo
      'foo  -> 'foo
Remove quotes from string.
Remove quotes from string .
def remove_quotes(string):
    '''
    Remove quotes from string.

    Ex.:
      "foo" -> foo
      'foo' -> foo
      'foo  -> 'foo

    '''
    quotes = ('"', "'")
    if string.startswith(quotes) and string.endswith(quotes):
        return string[1:-1]
    return string
def remove_quotes ( string ) : quotes = ( '"' , "'" ) if string . startswith ( quotes ) and string . endswith ( quotes ) : return string [ 1 : - 1 ] return string