Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Single Line Comments and Multi-Line Comments

There really is no difference. Multi line comments are just handier to use when writing long blocks of text which span across multiple lines.
Python actually has no real concept of multi line comments like other languages do. Instead it has triple quotes, which can also be used as docstrings.
PEP8 reccomends to just use single line comments, so I guess just stick with those. Unless you are writing a docstring, of course.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Formula 1Dec 6, 2019 01:11 AM 23 708 Dec 6, 2019 01:11 AM
Last Post: itcorp
[Java] by RaitzNov 4, 2017 02:04 PM 7 183 Nov 4, 2017 02:04 PM
Last Post: ZeratulTheWizard
[.NET] by ShikatanaiSep 8, 2017 01:20 AM 8 388 Sep 8, 2017 01:20 AM
Last Post: th3s3cr3t0n3