Professional Documents
Culture Documents
String Manipulation & Dictionaries
String Manipulation & Dictionaries
String Manipulation & Dictionaries
r
combinations of its values (all possible substrings from
i to
the given string argument chars) are stripped when they
lead the string.
Returns a copy of the string with trailing characters
Ed
removed.
If used without any argument, it removes the leading
whitespaces.
12. string.rstrip([char]) The chars argument is a string specifying the set of
characters to be removed.
F
The chars arguments is not a prefix ; rather, all
combinations of its values are stripped.
PD
Dictionaries
Summary of Dictionary Manipulation Methods and Functions
te r
Function / Method
S.No. Description
[ D is Dictionary]
as
<D>.update(<other- Merges key:value pairs from the new dictionary into the
6.
dictionary>) original dictionary, adding or replacing as needed.