October 22, 2024
Chicago 12, Melborne City, USA
python

What does ''' mean in Python?


Have been told that in Python

'''

is used to indicate the start of a multi-line string.
However I have also been taught that this code also allows for the documentation of functions and modules.

Googling, surprisingly, doesn’t give a clear answer on what ”’ definitively refers to.

So how should I remember, as a beginner, what this Python code refers to?
A multi-line string? An operator to assist documentation? Both? Something else?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video