Python Reverse A String

In this article, we will discuss reversing a string in Python. We will look into different approaches. 1. Naive method In this naive approach, we will loop through each letter in the string and joins them to form a reverse string as shown below. Output 2. Reverse using list.reverse() In this approach, we will convert … Read more

Law of Demeter

In this article, we will understand the Law of Demeter (LoD), the principle of least knowledge. It is a design guideline to develop software, particularly in the object-oriented (OO) world. Ian Holland introduced this law in 1987 when he was working on the Demeter project. Demeter is the Greek goddess of Agriculture. The LoD got … Read more

VSCodium or Visual Studio Code ?

vscodium or vscode feature image

VSCodium is a free open source version of VS code. In this article we will see its features and what makes it different from VS code editor. The License VS Codium is licensed under MIT license. Microsoft’s VS code’s source code is opensource (MIT) but the product available for download is not FLOSS(Free-Libre / Open … Read more

Switch Case in Python

A switch case is a flow control statement used in programming languages. In this article, we will discuss the switch case in Python. The syntax of switch statements in programming languages like C++, C, Java, etc. How does it work? The switch expression is evaluated once The value of each case is evaluated, if there … Read more

Python Range Function

Python offers different inbuilt functions, one such function is range. In this tutorial, we will learn about range functions in Python with examples. The range function Rather than being a function, the range type is an immutable sequence of numbers. Ranges implement all of the common sequence operations except concatenation and repetition. Syntax of the … Read more