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.

4 Ways to Add Items to a List in Python

A list is a data structure that can contain multiple elements in Python. These elements are ordered by the index which is beginning from zero. Additionally, lists are mutable—meaning they can be changed. The most common change to a list…

Understanding Python List Pop Method

The Python list pop method is a built-in method that removes the item at the given index from the list. It returns the removed item. The index is optional. If the index is not given, then the last element is…

Python Lists: Everything You Need to Know

Python lists are one of the most fundamental data structures in Python. In this blog post, we will discuss everything you need to know about them! We will cover how to create lists, add and remove items from them, and…

4 Ways to Create a List in Python

Python is a versatile language that you can use for a variety of purposes. One of the things that Python is great for is creating lists. In this blog post, we will discuss 4 simple ways to create a list…

10 Ways to Sort List in Python

Lists are Python’s most flexible ordered collection object type. Unlike strings, lists can contain any sort of object: numbers, strings, and even other lists.  Lists may be changed in place by assignment to offsets and slices, list method calls, deletion…

3 Ways to Find MAC Address in Ubuntu Linux

How to list MAC address on Ubuntu Linux is a commonly asked question during a Linux job interview. Here are 3 methods to get the MAC address in Ubuntu Linux. These commands are safe to run without changing anything.  …

4 Useful Commands to Check Linux Version

How to check Linux version is a commonly asked question during a Linux job interview. The OS version of a Linux distribution can be determined by using the command-line interface as well as a graphical user interface. In Linux, CLI…