Feb 11, 2004 #1 Sidro MIS Sep 28, 2002 197 US hi, In Python, how many ways are there to do a comments? Cound you give examples? thanks.
Feb 11, 2004 1 #2 bcfr92 Programmer Feb 4, 2004 3 FR Hye, You can do a command with at least two methods . The first one is to use the # like : #----> this is my own comment Or better if you want to add a comment that can be used by the help keyword (via idle) you can do this : def function toto(): """ This is my comment """ When using toto you can type the following command : help(toto) The return will be : Help on function toto in module mymodule: toto() This is my comment Hope that help !!! BCFR92 Upvote 0 Downvote
Hye, You can do a command with at least two methods . The first one is to use the # like : #----> this is my own comment Or better if you want to add a comment that can be used by the help keyword (via idle) you can do this : def function toto(): """ This is my comment """ When using toto you can type the following command : help(toto) The return will be : Help on function toto in module mymodule: toto() This is my comment Hope that help !!! BCFR92