TERMIUM Plus®

From: Translation Bureau

On social media

Consult the Government of Canada’s terminology data bank.

FORMATTED STRING LITERALS [1 record]

Record 1 2023-10-17

English

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

Also called "formatted string literals," f-strings are string literals that have an "f" at the beginning and curly braces containing expressions that will be replaced with their values. The expressions are evaluated at runtime and then formatted using the __format__ protocol.

OBS

f-string: Even though f-string refers to "formatted string literals," the designation "f-string" can be used in singular form (an "f-string").

French

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

f-string : Bien que «f-string» signifie «formatted string literals», il peut s'employer au singulier (un «f-string»).

Spanish

Save record 1

Copyright notice for the TERMIUM Plus® data bank

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

Features

GCtranslate (available on the Government of Canada network only)

Use this artificial intelligence prototype to translate Government of Canada content up to and including Protected B. Available to employees of selected departments and agencies only.

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: