From 574355b794541414155cf31e27dc49105735b5b9 Mon Sep 17 00:00:00 2001 From: Riadh Bch <47902351+rb-x@users.noreply.github.com> Date: Sat, 16 May 2020 00:48:21 +0200 Subject: [PATCH] f string fix --- python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.md b/python.md index 7c1e1319a..852c8a0f4 100644 --- a/python.md +++ b/python.md @@ -58,7 +58,7 @@ category: Python string.replace("-", " ") ",".join(list) "hi {0}".format('j') - "hi {name}" # same as "hi {}".format('name') + f"hi {name}" # same as "hi {}".format('name') str.find(",") str.index(",") # same, but raises IndexError str.count(",")