Module 1
Comments
Notes for humans right inside your code.
Leave notes for future you
Sometimes a line of code is hard to understand later. A comment is a note in your code that Python completely ignores. You start one with the # symbol.
PythonThe first line is just a note.
# This is a comment. Python ignores it.
print("Hello")→ Hello
Comments are for humans — for you and for teammates. They don't affect what the program does.
Try it
In bioinformatics work, comments often describe what a step in the analysis is doing — for example # count the G and C bases.
Your task
Add a comment
- Add a comment above the print line.
- A comment starts with #. Your program should still print Hello.
Remember
Anything after # on a line is a comment. Python skips it. Use them to explain your thinking.