Python Comments

Types of Comments

  • Single-line comments using #.
  • Multi-line comments using triple quotes '''... or """....

Best Practices

  • Write comments to explain why code exists, not what it does.
  • Keep comments up-to-date with code changes.