Update python.md

This commit is contained in:
Macvin 2020-05-06 11:08:18 +05:30 committed by GitHub
parent cb4e03077f
commit 799ca9ef39
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(",")