How do I make multi-line comments? Most languages have block comment symbols like:
/*
*/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use triple-quoted strings. When they’re not a docstring (the first thing in a class/function/module), they are ignored.
(Make sure to indent the leading
'''appropriately to avoid anIndentationError.)Guido van Rossum (creator of Python) tweeted this as a "pro tip".
However, Python’s style guide, PEP8, favors using consecutive single-line comments, like this:
…and this is also what you’ll find in many projects. Text editors usually have a shortcut to do this easily.