leave yourself helpful notes programmers sometimes read code they wrote while ago and wonder"what does this do?when you haven' looked at code in whileit can be difficult to remember why you wrote it the way you didto help avoid this problemyou can leave comments in your code comments are lines of text that don' affect the way program runs they document what code does or why the programmer made certain decisions how to write comment the most common way to write comment is to begin new line in your code with the character when you run your codepython ignores lines starting with comments that start on new line are called block comments you can also write inline commentswhich are comments that appear on the same line as the code they reference just put at the end of the line of codefollowed by the text in your comment here' an example of program with both kinds of commentsthis is block comment greeting "helloworldprint(greetingthis is an inline comment of courseyou can still use the symbol inside string for instancepython won' mistake the following for the start of commentprint("# "# in generalit' good idea to keep comments as short as possiblebut sometimes you need to write more than reasonably fits on single line in that caseyou can continue your comment on new line that also begins with the symbol