Can any one explain please "" vs ''?


#1

Cant understand hope you guys can help me out

like “String” vs ‘String’ what the difference “” and ‘’ ??

Thanks in Advance


#2

It’s your preference.

Unless you’re using Smart Quotes on your mac, then it isn’t registered as a string with the apostrophe.

Otherwise, they’re the same thing.

Edit:
By your mac I assumed you were using a mac because it looks like the apostrophes formatted with a Mac’s smart quote format.


#3

Thank you so much, It’s nice that Python gives you choices :smiley:


#4

As far as I know, almost all languages support either or for strings. Just note that if you open with ’ you need to close with ’ and vice versa.


#5

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