0
Can we use both print(" ") and print(' ')
i am confused between this
3 ответов
+ 2
Yes you can definitely use both.
+ 2
Python is one of those languages where (') or (") have the same meaning. So you can use any of them. You need to decide which style you like and stay with it.
From Python documentation at https://docs.python.org/2.0/ref/strings.html
In plain English: String literals can be enclosed in matching single quotes (') or double quotes (").
So to answer your question. Yes you can any of them, but it is better if you stay with only one style in your code.
0
thank you soo much sir