Comments
Comments in programming are parts of code that Python ignores. The primary purpose of using them is readability. It is a good practice to leave comments in your code with descriptions of what a particular part of code does.
In Python, the comment starts with the hash #
sign. All the text right to the #
will be ignored. For example, you may have two print()
functions, but if you place #
to the left of one of them, then only one text will be output.
12print('String 1') #print('String 2')
Danke für Ihr Feedback!
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Fragen Sie mich Fragen zu diesem Thema
Zusammenfassen Sie dieses Kapitel
Zeige reale Beispiele
Awesome!
Completion rate improved to 2.7
Comments
Swipe um das Menü anzuzeigen
Comments in programming are parts of code that Python ignores. The primary purpose of using them is readability. It is a good practice to leave comments in your code with descriptions of what a particular part of code does.
In Python, the comment starts with the hash #
sign. All the text right to the #
will be ignored. For example, you may have two print()
functions, but if you place #
to the left of one of them, then only one text will be output.
12print('String 1') #print('String 2')
Danke für Ihr Feedback!