EN
Python - Comments
0
points
In this article, we would like to show you how to use comments in Python.
Quick solution:
# This is a comment
Practical example
Comments can be placed both in separate line and at the end of the line. When placed at the end of the line Python will ignore the rest of the line.
# my variable
x = 10
or
x = 10 # my variable
You can also comment a piece of code:
x = 10
# print(x)