Difference between comments in python # and """ -


starting program in python, see scripts comments using # , """ comments """ find out difference between these 2 ways comment.

best thing read https://www.python.org/dev/peps/pep-0008/, since longish, here 3 liner:

  • comments start # , not part of code.
  • string (delimited """ """) called docstring , used on special places defined purposes (briefely: first thing in module or function describing module or function) , accessible in code (so part of program, not comment).

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -