f string fix

This commit is contained in:
Riadh Bch 2020-05-16 00:48:21 +02:00 committed by GitHub
parent efd0a4590a
commit 574355b794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ category: Python
string.replace("-", " ") string.replace("-", " ")
",".join(list) ",".join(list)
"hi {0}".format('j') "hi {0}".format('j')
"hi {name}" # same as "hi {}".format('name') f"hi {name}" # same as "hi {}".format('name')
str.find(",") str.find(",")
str.index(",") # same, but raises IndexError str.index(",") # same, but raises IndexError
str.count(",") str.count(",")