We know that if we want to print something on the console then we use print() statement in python. In a print statement, we can use single quotes or double quotes to print the text to the console. In this article, we will see what is the difference between single and double quotes in Python and in which scenario we have to use one. In languages like Java, C++, and C when we want to print something we strictly have to use double quotes. This thing is different in the case of Python Language. In Python, we can use either single quotes or double quotes. Difference between Single and Double Quotes in Python In the case of Python, there is no major difference between the quotes. We can use either of them in the print statement. Now, we will see some scenarios that why both the quotes exist in Python while not present in other Languages. Let’s suppose we want to print a statement like This is Hari’s Book . By using double quotes we can easily print this statement. Code: print("
This website is about programming knowledge. You can call this blog best programming master.