David Cao

David Cao

David is a Cloud & DevOps Enthusiast. He has years of experience as a Linux engineer. He had working experience in AMD, EMC. He likes Linux, Python, bash, and more. He is a technical blogger and a Software Engineer. He enjoys sharing his learning and contributing to open-source.

5 Examples to Split String to List in Python

The split() method in Python splits strings into a list. It will return a list of the words in the string/line, separated by the delimiter string. split string Syntax in Python 3 string.split(separator, max) Parameter Description separator The is a…

3 ways to Slice String in Python

We can extract a substring (a part of a string) from a string by using a slice in Python We define a slice by using square brackets, a start offset, an end offset, and an optional step count between them.…

4 Ways to Append List in Python

Python is a versatile language that you can use for all sorts of purposes. One of the things that makes it so great is its ability to handle lists. Lists are one of the most basic data structures in Python,…