Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Comments | Getting Started
Introduction to Python (PDF generation)

bookComments

Note
Note

You can quickly comment or uncomment lines of code by selecting them and pressing Ctrl + / on Windows or Command + / on Mac.

123
print("Blueberries") # print("Oranges") print("Ranch dressing")
copy
question mark

What symbol is used to write a comment in Python?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain what happens if I remove the hash symbol from the second line?

What are some best practices for writing comments in Python?

Can you show more examples of using comments to disable code?

bookComments

Swipe to show menu

Note
Note

You can quickly comment or uncomment lines of code by selecting them and pressing Ctrl + / on Windows or Command + / on Mac.

123
print("Blueberries") # print("Oranges") print("Ranch dressing")
copy
question mark

What symbol is used to write a comment in Python?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
some-alt