Skip to content
Sign upLog in
← Back to Community

how do I add code to my comments?

Profile icon
therealperson

I've been trying to type my code on a comment but I cannot understand how

Answered by Bookie0 [earned 5 cycles]
View Answer
Voters
Profile icon
therealperson
Comments
hotnewtop
Profile icon
Bookie0

You can't.

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. ;)

Profile icon
RobertF6

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. Best plumbers in miami

Profile icon
RobertF6

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. Yubo

Profile icon
RobertF6

Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. Mark Hauser

Profile icon
RobertF6

I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information Philip Belamant

Profile icon
RobertF6

Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. Yubo

Profile icon
RobertF6

This blog is really great. The information here will surely be of some help to me. Thanks!. Mark Hauser

Profile icon
RobertF6

I read your blog frequently and I just thought I’d say keep up the amazing work! Philip Belamant

Profile icon
RobertF6

I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well. cheap banners

Profile icon
RobertF6

Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.. jet card

Profile icon
RobertF6

Thanks for this article very helpful. thanks. Yubo

Profile icon
RobertF6

Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends. Philip Belamant

Profile icon
RobertF6

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Mark Hauser

Profile icon
RobertF6

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. Miki Agrawal

Profile icon
RobertF6

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. Miki Agrawal

Profile icon
RobertF6

Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know. personal trainer

Profile icon
RobertF6

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. Philip Belamant

Profile icon
RobertF6

i was just browsing along and came upon your blog. just wanted to say good blog and this article really helped me. Yubo

Profile icon
RobertF6

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists. Mark Hauser

Profile icon
RobertF6

Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! Miki Agrawal

Profile icon
RobertF6

Love what you're doing here guys, keep it up!.. plainfield locksmith

Profile icon
RobertF6

Thanks for sharing the info, keep up the good work going.... I really enjoyed exploring your site. good resource... crawlspace ninja

Profile icon
RobertF6

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists. Ryan Bishti

Profile icon
RobertF6

New web site is looking good. Thanks for the great effort. Vinyl wraps

Profile icon
RobertF6

I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site. juan monteverde yacht

Profile icon
RobertF6

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it, background check fingerprinting near me

Profile icon
RobertF6

I think that thanks for the valuabe information and insights you have so provided here. heathrow terminal 5 to gatwick north

Profile icon
RobertF6

Nice to read your article! I am looking forward to sharing your adventures and experiences. بلیط کیش

Profile icon
RobertF6

Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. gold ira companies

Profile icon
ExamsBuzz

Your post is too amazing. I have found with ease what I was looking for. Moreover, the content quality is awesome. Thanks for the nudge! CBD in skincare

Invalid image url

Profile icon
ChristineBarber

I saw a tutorial on how to comment code on this site, word hurdle you can try searching and see it. dordle