What are comments in Python?

  • Comments can be used to explain Python code.
  • Comments can be used to make the code more readable.
  • Comments can be used to prevent execution when testing code.

But, how can you do that?

Example:

Example:

Example:

Multi-Line Comments

Example:

Example:

Conclusion:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Noor Fakhry

Noor Fakhry

Creator @Youtube | Instructor @Udemy | Software Engineer | Masters in CS | Youtube Channel => https://bit.ly/3d7ZP5j