how do I add code to my comments?
I've been trying to type my code on a comment but I cannot understand how
Comments are used for explaining your code, making it more readable, and to prevent execution when testing code.
This is how to comment:
# this is a comment # it starts with a hashtag # # Python will ignore and not run anything after the hashtag
You can also have multiline comments:
""" this is a multiline comment I can make it very long! """
so if you have code preceded by a comment:
# print("Hello World!") # name = input("Enter you name")
These two bits of code above won't run as they are commented out. ;)