# Python For Beginner's Day - 8

**contd....**

* **join():** takes all elements in an iterable(list, dictionary....) and joins them into one string and it must be separated by any string.
    
    **NOTE**: Using Dictionary, the returned values will be keys not the values.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717691266258/52cf105e-8a69-41f7-928b-a591e9821448.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717691291841/7177d9ae-49d3-4bad-afa7-0995689e87e3.png align="center")
    
* **lower():** converts string to lower case.
    
* **upper():** converts string to upper case.
    
* **title():** converts first character of each word to upper case.
    
* **swapcase():** lower case becomes upper case and vice versa.
    
* **replace():** particular word is replaced with another value.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717694208157/43186290-8e10-490a-9476-2b6f5163d468.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717694229933/92950aab-ba56-4678-a9bd-c510fd61ceb4.png align="center")

* **strip():** returns trimmed version of the string.
    
* **lstrip():** returns the left trim version of the string.
    
* **rstrip():** returns the right trim version of the string.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717694381573/ddfe5971-9865-40c3-83b0-7012b8012d5e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717694403758/111e5236-ea02-45ab-8dd2-14f0da143598.png align="center")

* **split():** splits a string into a list.
    
* **rsplit():** splits a string into a list, starting from right.
    
* **splitlines():** Splits the string at line breaks and return a list.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717694600122/8942cdd4-54dc-435f-bd53-aecf4c8e26ba.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717694618841/bcb4f4b1-fcc7-436e-a062-8a8d8143aa3f.png align="center")

* **rfind()**: searches the string for particular value and returns the last position where it was found. if value is not found it returns -1.
    
* **rindex():** same as rfind(), but only difference is if value is not found it throws an exception.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717695156819/b6e81c19-2b37-4da2-b0b7-65d907f9b52b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717695179422/eca97de8-ad91-4fe6-afb2-d035cf64128c.png align="center")
