Comment in python | Python for Beginners

Veröffentlicht am: 03 Januar 2023
auf dem Kanal: Cipher
9
like

To make a comment in Python, you can use the # symbol. Anything after the # on the same line will be ignored by the Python interpreter. Here is an example:


This is a comment
The following line is a command to print "Hello, World!"
print("Hello, World!")
You can also use multiple # symbols to create a block comment, like this:


This is a block comment
It can span multiple lines
Just use the "#" symbol at the beginning of each line

This is not a part of the block comment
It is a separate line of code
print("Hello, World!")

Block comments are useful for including longer explanations or notes in your code. They can help you and others understand what the code is doing.

Time Stamps:
0:00 What is comment in python
0:19 How comment works
0:50 How to create comment in python


#pythonforbeginners
#pythontutorial #python #pythonprogramming #python3 #pythoninhindi


Auf dieser Seite können Sie das Online-Video Comment in python | Python for Beginners mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Cipher 03 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 9 Mal angesehen und es wurde von like den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!