At this moment in time, if people (tech giants) want they can design their operating system within a matter of a few days or months. Anything can be possible nowadays due to the availability of a wide range of resources…
In this article, we will see how to insert an element at the end of a list in python. Inserting at the end is pretty similar to how to insert at the beginning of a list. We use an insert()…
In this article, we will see how to insert at the front of a list in python. Python has several built-in data types, list is one among those types. Using a list, we can store multiple values under a single…
Beautiful soup is yet another excellent library in python which is being widely used to scrap web content from any webpage using python. To scrap the web content using python, beautiful soup is the best tool. It is used to…
There are many in-built features APIs in python which we can use to process the given string. Following are a few examples. Remove whitespace characters from a string The split() function is used to separate the given string based on…
To get the list of subdirectories under the given path, we need to interact with the OS filesystem. Python made it easy by providing the “os” module. It provides the functionality to interact with the operating systems. Just import the…
In this article, we will see how to split a list into multiple sub-lists. Python lists are non-homogeneous and used to store multiple values of different data types which can be either numeric, Boolean, characters, etc under the same name….
In this article, we will see how to remove a white space character from a string and convert the string to upper case. By using the split() method we divide the entire string into multiple substrings with whitespace as a…
Python has a module called datetime which has several classes for manipulating date and time. By using the “timedelta” in datetime module we can easily get the previous month’s date. Following is the example
Dictionary in python is a collection of key-value pairs. It is the same as an array instead the value here will be accessed by using the keys mapped. Whereas in arrays we use indexes. Values in the dictionary can be…