From e84bd33ca9cc3e9c91ffc223d13a980117b370db Mon Sep 17 00:00:00 2001 From: Utkarsh Raghav <43128146+mrNobody1618@users.noreply.github.com> Date: Mon, 17 Dec 2018 15:12:56 +0530 Subject: [PATCH] Added string formatting (#26695) Included the String formatting function/method to the above list. --- guide/english/python/string-methods/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/python/string-methods/index.md b/guide/english/python/string-methods/index.md index da7e32a5b0..2008347de9 100644 --- a/guide/english/python/string-methods/index.md +++ b/guide/english/python/string-methods/index.md @@ -28,4 +28,4 @@ An empty `string` is created using a pair of quotation marks or apostrophes: * `string.strip(to_strip)` Returns a string with `to_strip` removed from both the beginning and the end of the string. If `to_strip` is not specified, this will strip all whitespace characters. - +* `string.format(to_add)` Returns a formatted string with parameter `to_add` placed in the placeholder position. The placeholder has to be defined by a pair of curly braces {} int the `string`'s value. The parameter, `to_add` can be anything amongst an integer, a floating point numerical, a string or even variables.