The aim of this is to outline 4 simple steps for writing multiline formatted strings in Python.

  1. place f-strings in parentheses for implied line continuation (or directly within a print statement)
  2. do not separate them by comma and do not use backslash for line continuation
  3. do signal a newline with \n except on the last line
  4. each f string line has its own f"string" notation
The preferred way of wrapping long lines is by using Python’s implied line continuation inside parentheses, brackets, and braces. 
Long lines can be broken over multiple lines by wrapping expressions in parentheses.
These should be used in preference to using a backslash for line continuation.

— From

print(f"deleted >{branch_name}< branch\n"
f"~~~> Deletion complete")
""" OR """
multiliner = (f"deleted >{branch_name}< branch\n"
f"~~~> Deletion complete")


The aim of this page📝 is to note a simple pattern (anti-pattern for some?) to instruct users to re-run

pip install -r requirements

If you run a python script and you have a missing dependency you get a variation of

Traceback (most recent call last):
File "<foo>", line 4, in <module>
import <bar>
File "<foobar>", line 1, in <module>
from <foobar> import <barfoo>
ModuleNotFoundError: No module named '<barfoo>'

I prefer to print a more elegant instruction

Missing dependency module: Run "pip install -r requirements.txt" → Retry

The aim of this page📝 is to find all PR waiting for my review via GH CLI and, additionally, just approve them all. Using Powershell Core.

1. notes

  • List your PR IDs
▶ gh pr list -S "user-review-requested:@me"
  • Loop through IDs and approve them with
▶ $a = 3248,3247,3246,2934
▶ foreach($i in $a) {gh pr review $i --approve}
▶ $a | % {gh pr review $_ --approve}

2. links

Pavol Kutaj

Technical Support Engineer/Technical Writer (Snowplow Analytics). with a passion for Python / writing documentation. More about me:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store