Practice question from Setup & Basics

What character starts a single-line comment in Python?

Answer

Explanation

The hash symbol (#) begins a single-line comment. Everything after # on that line is ignored by Python. Comments help explain code to human readers.

More questions from Python Programming