Tapas Kumar Ghosh has Published 150 Articles

How to display HTML tags as plain text in HTML?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 12-Nov-2023 11:49:29

2K+ Views

HTML tags are used for defining the structure of the webpage. Various types of tags can use used for dealing with text in HTML. In this article, we will use the plaintext tag to display the HTML tag in the output. The examples used in this article will help you ... Read More

Python - K difference index Pairing in List

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:23:22

64 Views

The K is the special number that set the sum of the difference values starting with 0th index. For example, if k = 3 it means the 0th index added with K and finds the exact pairs. In Python, we have some built-in functions such as str(), len(), and append() ... Read More

Check if the Sum of Digits of a Number N Divides It

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:19:17

90 Views

The N number is the special number of integer type that calculates the individual digit of sum. So, this sum will be divisible by its own number. Let’s take an example of this. The given integer number, N = 36 The sum of each digit, 3 + 6 = 9 ... Read More

How to Sort a Pandas DataFrame by Date?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:16:25

2K+ Views

Python’s Pandas DataFrame defines the two-dimensional structure that consists of rows and columns. The main feature of pandas is an easier way of handing the given data. In Python, we have some in-built functions such as to_datetime(), sorted(), lambda, and, sort_value() will be Sort a Pandas DataFrame by Date. Syntax ... Read More

Python - Filter Tuples with All Even Elements

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:14:59

124 Views

The problem statement allows us to determine the position of the desired string in the list, which can be useful for various purposes, such as accessing or manipulating elements at that specific index. In Python, we have some built-in functions like reduce(), str(), filter(), lambda, and, all() that will be ... Read More

Program to check if a String in Java contains only whitespaces

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:10:38

1K+ Views

The whitespaces of JAVA represent either an empty string or an escape sequence character. In Java, we have some built-in functions such as isEmpty(), lenThe whitespaces of JAVA represent either an empty string or an escape sequence character. In Java, we have some built-in functions such as isEmpty(), length(), isWhitespace(), ... Read More

Check if a Word is Present in a Sentence

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:05:20

512 Views

A sentence is a group of words that are present in a string. In this problem statement, we need to set a specific word and check whether the word is present in a given string or not. In C++, we have some pre-defined functions such as find(), npos(), and istringstream() ... Read More

Check if a number with even number of digits is palindrome or not

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 18:02:54

139 Views

The palindrome refers to same number when the digits are reversed. In this program, we need to set the condition and operation based on an even number of digits to identify whether the given input satisfied for palindrome or not. In C++, we have STL(Standard template library) functions such as ... Read More

Python - K List Dictionary Mesh

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Aug-2023 17:58:41

52 Views

The term dictionary Mesh is defined by storing the value pair of every key set to dictionary. To include the K list in the dictionary means to insert the list as value pair. In Python, we have some built-in functions such as defaultdict() and lambda will be used to solve ... Read More

Python - Filter unequal elements of two lists corresponding same index

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 16-Aug-2023 16:20:05

193 Views

The indexing is the specific position of the element from the list. The unequal elements of two lists refer to those indexes whose elements are not matched from both lists. In Python, we have some built-in functions like enumerate(), zip(), filter(), etc. that can be used to filter unequal elements ... Read More

1 2 3 4 5 ... 15 Next
Advertisements