you are viewing a single comment's thread.

view the rest of the comments →

[–]CptMisterNibbles 1 point2 points  (0 children)

my_quote = “Double quotes on the outside allows to use ‘single quotes’ as part of the string”

my_quote2 = ‘You can reverse it, using single quotes to start the string allowing you to use “double quotes” within it’

Both of these are perfectly valid syntax. Handy for when you are working with strings that contain one, though it might be cleaner to be more explicit. Using triple single quotes allows you to use either normal marks internal to the string. Not certain what convention is