Defining a string " or '


#1

Hi,
I have a question with regards to strings in Python, should I use " or ’ for the string

Or does Python not mind?

Please leave the following link in the post so we can find the unit module, else replace it with a link to the exact lesson:

Strings and Console Output


#2

Python doesn’t mind. Its down to personal preference, maybe there is some advice on what to use what, but you can google that (google: python quotation marks vs apostrophes)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.