check_circleMark as learned
Comments in Python
schedule Jul 1, 2022Last updated
To write a single-line comment in Python:
# I am a comment.
Note that everything after the
# in the same line is interpreted as a comment:
print("hello!") # I am a comment.hello!
To write a multi-line comment, wrap your comment in
""" like so:
"""I am amulti-line comment."""
Join our newsletter for updates on new DS/ML comprehensive guides (spam-free)
Published by Isshin Inada
Edited by 0 others
Did you find this page useful?
Enjoy our search
Hit / to insta-search docs and recipes!