Disha Verma has Published 63 Articles

What are boolean operators in Python?

Disha Verma

Disha Verma

Updated on 18-Apr-2025 15:12:10

8K+ Views

The Boolean operators in Python return two values, either true or false. These operators are mostly used in conditional statements, loops, and logical expressions. Python has a built-in Boolean datatype that returns Boolean values based on comparisons or logical evaluations between operands. Boolean Operators in Python There ... Read More

What is different in & and AND operators in Python?

Disha Verma

Disha Verma

Updated on 18-Apr-2025 15:05:04

528 Views

The AND and & are logical operators in Python that are used to perform different operations. The AND is a logical AND operator, and the ampersand (&) is a bitwise operator. In this article, we will explore the behavior of these operators and their differences. AND Operator in Python The ... Read More

What is different in OR and AND operators in Python?

Disha Verma

Disha Verma

Updated on 18-Apr-2025 14:48:45

6K+ Views

The OR and AND operators are the most commonly used logical operators. The logical operators are used to perform decision-making operations. These combine multiple conditions and make a decision based on them. In this article, we will understand what OR and AND operators are in Python and how ... Read More

What is the difference between = and == operators in Python?

Disha Verma

Disha Verma

Updated on 18-Apr-2025 14:15:37

1K+ Views

The symbols "=" and "==" look similar but have different meanings and usability in Python. The "=" symbol is the assignment operator, and the "==" symbol represents a comparison operator. In this article, we will understand the difference between these two and how to use them. The ... Read More

What does these operators mean (** , ^ , %, //) ?

Disha Verma

Disha Verma

Updated on 18-Apr-2025 14:10:06

537 Views

In Python, there are various types of operators used to perform specific functions, such as (**), (^), (%), and (//). The (**) operator represents exponentiation, (^) represents bitwise XOR, (%) represents the modulus operation, and (//) represents floor division. In this article, we will understand the workings of ... Read More

JavaScript Remove non-duplicate characters from string

Disha Verma

Disha Verma

Updated on 18-Mar-2025 13:00:28

474 Views

Non-duplicate characters in a string are those that appear only once and do not repeat within the string, and the strings are a data type that represents a sequence of characters or text. Sometimes in JavaScript, we need to work with strings and manipulate them based on certain conditions. One ... Read More

Removing all non-alphabetic characters from a string in JavaScript

Disha Verma

Disha Verma

Updated on 18-Mar-2025 12:59:47

836 Views

Non-alphabetic characters are any characters that are not part of the alphabet, and the strings are a data type that represents a sequence of characters or text. Working with strings is a basic task in JavaScript, and one common task is removing all non-alphabetic characters from a string. In this ... Read More

JavaScript Program to Find Area and Perimeter of Rectangle

Disha Verma

Disha Verma

Updated on 18-Mar-2025 12:59:21

9K+ Views

To find the area and perimeter of a rectangle in JavaScript, we will be using the basic formulas for the perimeter and area of a rectangle. The area of a rectangle is the multiplication of its length by its breadth, and the perimeter of a rectangle is the sum of ... Read More

Set JavaScript object values to null?

Disha Verma

Disha Verma

Updated on 17-Mar-2025 12:35:38

6K+ Views

Setting object values to null can help reset data, free up memory, or show that a value is no longer needed. In JavaScript, the null value is used to indicate that there is an intentional absence of any object value. This article provides various methods for setting JavaScript object values ... Read More

Spread operator for arrays in JavaScript

Disha Verma

Disha Verma

Updated on 17-Mar-2025 12:34:29

299 Views

The spread (…) operator of JavaScript is used to expand an array or any other iterable into individual elements. It was introduced in ECMAScript 2015 (ES6). The spread operator is a powerful feature of JavaScript that allows one to perform operations for complex and lengthy code in a simple single ... Read More

Advertisements