Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python single vs double quotes

Quoting the official docs 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 there is no difference.
Comment

python return double quotes instead of single

>>> import json
>>> List = ["A", "B"]
>>> print json.dumps(List)
["A", "B"]
Comment

PREVIOUS NEXT
Code Example
Python :: filter field set in django formds 
Python :: s.cookie.set python 
Python :: python for in range 
Python :: value list in django 
Python :: how to create a network scanner in python 
Python :: replace all occurrences of a value to nan in pandas 
Python :: image processing python 
Python :: #index operator in python 
Python :: Write a Python program to remove a key from a dictionary. 
Python :: how to run python in the browser 
Python :: how to add condition if null value in django orm 
Python :: multiple line comments 
Python :: How to Get the length of all items in a list of lists in Python 
Python :: connect with database python 
Python :: Reverse an string Using Loop in Python 
Python :: www.pd.date_range 
Python :: all python versions 
Python :: librosa python 
Python :: how to get a specific character in a string on number python 
Python :: how to check if all values in list are equal python 
Python :: pyqt math 
Python :: python compiler online 
Python :: how to make code only go once python 
Python :: python if in list 
Python :: panda lambda function returns dataframe 
Python :: break input loop 
Python :: python pyttsx3 
Python :: hexdigest python 
Python :: How to use Counter() Function 
Python :: pd.cut in pandas 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =