Use of double quotes and single quote in python?
Answer / Manoj Kumar Sharma
In Python, both double quotes (") and single quotes ('') can be used to define strings. However, when a string contains an embedded quote of the same type as the opening quote, you must escape it using a backslash (). If using a different quote type, there's no need for escaping.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a raw input?
What is python main function and write one good example?
Which python memory profiler is recommended?
What is python method?
What is python written in?
Is empty python dataframe?
How do you reverse the string in python?
Explain help() and dir() functions in python?
how do you reverse a list in python?
What does the *args do in python?
What is python, what are the benefits of using it, and what do you understand of pep 8?
How to merge two dictionaries in a single expression?