Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What symbol is used to start a single-line comment in Python?
It's a sharp symbol.
How do you create a multi-line comment?
Think about how you open and close a quote three times.
What starts a single-line comment in Python?
Remember the symbol that's shaped like a musical note.
Is a multi-line comment in Python used for longer explanations?
Consider how you can enclose multiple lines.
Write a function that calculates the area of a circle. Include comments to explain each step.
Use a multi-line comment to describe the function.
Analyze a code snippet without comments. Explain how adding comments could improve the understanding of that snippet.
Think about why someone might struggle to understand the code without comments.
5 more questions in this section. Enroll free to practise them all.
Enroll free