TERMIUM Plus®

The Government of Canada’s terminology and linguistic data bank.

TRIPLE QUOTES [2 records]

Record 1 2023-10-17

English

Subject field(s)
  • Programming Languages
  • Codes (Software)
CONT

Per convention, you use one-line docstrings if the function, module, class, or method is obvious enough to warrant a short explanation—but nothing more. You can enclose the one-liner docstring within single quotes, double quotes, or even triple quotes. However, enclosing the one-liner docstring in a triple quote is the most Pythonic way.

Key term(s)
  • oneline docstring

French

Domaine(s)
  • Langages de programmation
  • Codes (Logiciels)

Spanish

Save record 1

Record 2 2021-12-22

English

Subject field(s)
  • Programming Languages
  • Codes (Software)
CONT

Spanning strings over multiple lines can be done using Python's triple quotes. It can also be used for long comments in code... As the name suggests its syntax consists of three consecutive single or double-quotes.

French

Domaine(s)
  • Langages de programmation
  • Codes (Logiciels)

Spanish

Save record 2

Copyright notice for the TERMIUM Plus® data bank

© Public Services and Procurement Canada, 2025
TERMIUM Plus®, the Government of Canada's terminology and linguistic data bank
A product of the Translation Bureau

Features

Language Portal of Canada

Access a collection of Canadian resources on all aspects of English and French, including quizzes.

Writing tools

The Language Portal’s writing tools have a new look! Easy to consult, they give you access to a wealth of information that will help you write better in English and French.

Glossaries and vocabularies

Access Translation Bureau glossaries and vocabularies.

Date Modified: