diff --git a/index.html b/index.html index 94671a3..c9fca8b 100644 --- a/index.html +++ b/index.html @@ -1579,7 +1579,7 @@ shutil.rmtree(<path>) # Deletes t

Sends '1 + 1' to the basic calculator and captures its output:

>>> from subprocess import run
->>> run('bc', input='1 + 1\n', capture_output=True, encoding='utf-8')
+>>> run('bc', input='1 + 1\n', capture_output=True, text=True)
 CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='')