What is (f) in (f"""), and what is (\"\"\") in (\"\"\"{text_1}\"\"\")

Hi @MyTH.
Very briefly:

  1. “f” here means “formatted string literals”, so if you use it before any string part in courly bracket is replaced by a value, formula, etc.
  2. if you use tripple quotes it denotes multiline text. To be able to read it a convenient way you use ‘\’ to continue with text on another line (It’s an escape character).

Hope it helps a little bit.

1 Like