⊗pyPmBsCm 5 of 208 menu

Comments in Python

In Python, you can leave comments. They can be single-line or multi-line.

A one-line comment can be made using the hashtag icon #:

# test

And to leave a multi-line comment, you need to enclose it in triple quotes:

""" test1 test2 test3 """

Comment out the following line:

test = 'abc'

Let's say you have the following lines:

test1 = 'abc' test2 = '123' test3 = 123

Enclose them in a multi-line comment.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline