Thursday, 5 September 2013

Multiple Quotes in String

Multiple Quotes in String

In Python how would I write the string '"['BOS']"'.
I tried entering "\"['BOS']\"" but this gives the output '"[\'BOS\']"'
with added backslashes in front of the '.

No comments:

Post a Comment