0

Can we use both print(" ") and print(' ')

i am confused between this

27th Jan 2017, 8:20 AM
Abhishek Patel
Abhishek Patel - avatar
3 Antworten
+ 2
Yes you can definitely use both.
27th Jan 2017, 8:22 AM
Jacob Price
Jacob Price - avatar
+ 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.
27th Jan 2017, 8:48 AM
Vlad
Vlad - avatar
0
thank you soo much sir
29th Mar 2017, 11:34 AM
Abhishek Patel
Abhishek Patel - avatar