From 62340700011cf9e45fafe0edda75a4b0d201f3cb Mon Sep 17 00:00:00 2001 From: TanmayNagdeve <55934827+TanmayNagdeve@users.noreply.github.com> Date: Thu, 1 Oct 2020 16:03:35 +0530 Subject: [PATCH] Added 3 more snippets to the list title.py, list_comprehension.py, string_split.py --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f9f4ca8..ebc0259 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ - [listtree.py](listtree.py) Trace the entire class and all its object's attrs at and above self - [mapattrs.py](mapattrs.py) Map all attributes on or inherited by an instance to the instance or class from which they are inherited. +-[title.py](title.py) The following snippet can be used to convert a string to title case. This is done using the title() method of the string class. +-[list_comprehension.py](list_comprehension.py) List comprehension provides us with an elegant way of creating lists based on other lists. +-[string_split.py](string_split.py) We can split a string into a list of substrings using the .split() method in the string class. + ---