Linux Tips

Awesome tips and tricks for Linux based operating systems.

Python Priority Queue (Step By Step Guide) – Like Geeks

A queue is a data structure that retrieves data items in an order called FIFO (first in first out). In FIFO, the first inserted element will be popped out first from the queue.The Priority Queue is an advanced version of the Queue data structure. The element with the highest priority is placed on the very …

Python Priority Queue (Step By Step Guide) – Like Geeks Read More »

Generate Random Numbers In Python – Like Geeks

There are two types of random number generators: pseudo-random number generator and true random number generator.Pseudorandom numbers depend on computer algorithms. The computer uses algorithms to generate random numbers. These random numbers are not truly random because they are predictable like the generated numbers using NumPy random seed. Whereas, truly random numbers are generated by …

Generate Random Numbers In Python – Like Geeks Read More »

NumPy Array Reshape (Shape Transformation Without Data Change) – Like Geeks

In this tutorial, you will learn about reshaping the NumPy arrays. This tutorial focuses on the reshaping technique using the NumPy array reshape function. The shape of an array is defined as the total number of elements in each dimension of the array. Reshaping an array means change either the number of elements in an …

NumPy Array Reshape (Shape Transformation Without Data Change) – Like Geeks Read More »

Python Math Functions (Simple Examples) – Like Geeks

In this tutorial, you will learn about Python math functions in the math module of Python. Mathematical calculations are always required in any type of project. However, the math module does not work on complex numbers and you need to use the cmath module to perform operations on complex numbers. In Python, some built-in math …

Python Math Functions (Simple Examples) – Like Geeks Read More »

JSON Processing Using Python – Like Geeks

In this tutorial, you’ll learn various JSON processing techniques such as load JSON objects, write, sort JSON, or parse JSON, etc. JSON stands for JavaScript Object Notation that represents structured data. JSON data is used to exchange information. In Python, we can use JSON by importing the built-in Python module called json. The json module …

JSON Processing Using Python – Like Geeks Read More »

Remove Punctuation Using Python – Like Geeks

If you have ever worked processing a large amount of textual data, you would know the pain of finding and removing irrelevant words or characters from the text.Doing this job manually, even with the help of modern word processors, can be time-consuming and frustrating.Fortunately, programming languages such as Python support powerful text processing libraries that …

Remove Punctuation Using Python – Like Geeks Read More »

CSV Processing Using Python – Like Geeks

Throughout this tutorial, we will explore methods for reading, writing, and editing CSV (Comma-Separated Values) files using the Python standard library “csv”. Due to the popularity of CSV files for databasing, these methods will prove crucial to programmers across different fields of work. CSV files are not standardized. Regardless, there are some common structures seen …

CSV Processing Using Python – Like Geeks Read More »

Slicing In Python (Comprehensive Tutotial) – Like Geeks

Programming in Python involves frequently working with sequential or ‘indexed’ data. Indexed data are the ones stored in such structures that allow their access using indices.Such data can be of varying lengths, from a few elements to hundreds of thousands of elements.However, most of the time, we are interested in working only on a small …

Slicing In Python (Comprehensive Tutotial) – Like Geeks Read More »

Modulo Operator In Python (Simplified Examples) – Like Geeks

There are two ways in which we can do arithmetic division of two numbers. One of them is the floating-point division.In this type of division, we get a single result after dividing two numbers, which is a floating-point number i.e it has a decimal point and a fractional part after the decimal.In Python, the default …

Modulo Operator In Python (Simplified Examples) – Like Geeks Read More »

Scroll to Top