In this article, we would like to show you how to use comments in Python.
# This is a comment
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
x = 10 # my variable
You can also comment a piece of code:
x = 10 # print(x)