EN
Python - single or double quotes for strings?
1 answers
0 points
Should I use single or double quotes for string variables in Python?
1 answer
0 points
Both the ways are correct.
Use single quotes for string literals, e.g. 'single-quotes'
, but for strings that are likely to contain single-quote characters use double quotes e.g "You're awesome!"
.
0 commentsShow commentsAdd comment