Tkinter

Tkinter Python quotations

Tkinter Python quotations

In Python, quotations are used to differentiate between a word, a sentence, and a paragraph.

In Python, an example of a quotation:

'PythonGeeks' is a term.

"Welcome to PythonGeeks," is the phrase.

"Welcome to PythonGeeks, You're Learning Python Syntax"

When you define a word or want to print a word with print statements, you use single quotation marks".

You use double quotes to define a sentence " " when defining it.

And, as seen in the example above, you use triple quotes to define a paragraph.

Python's Blank Lines

Python interpreters ignore any blank lines you leave.

Comments in Python

When you're coding in Python, comments can assist you in understanding what you're doing. It explains what the software is all about and how it operates.

word=’PythonGeeks’  #This is a word

sentence="Welcome to PythonGeeks"  #This is a sentence

paragraph="Welcome to PythonGeeks, You are learning Python Syntax" #This is a paragraph

The preceding example demonstrates how comments operate in Python. Use a hashtag (#) followed by the comment in Blank Lines to add a comment to your code.