Asif Rahaman has Published 58 Articles

Python - Kth digit Sum

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:27:26

203 Views

Finding the kth digit sum means we must find the sum of all the digits at the kth index of a list of numbers. This is an important programming concept, and we use this in data validation, financial analysis, etc. In this article, we will explore how to find the ... Read More

Python - K Summation from Two lists

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:25:52

176 Views

List is an important data type in Python that can hold sequence of either homogeneous or heterogeneous data types. They are mutable. Finding the k summation from two lists means we need to find the combinations of the elements of two lists, which can add up to make the sum ... Read More

Python - K Maximum Elements with Index in List

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:24:13

607 Views

The list is a popular mutable data type in Python that can hold heterogeneous data. We can access the list elements by using a process called indexing. The indexing means the distance of any element from the first element; hence it starts from 0. This article will explore how to ... Read More

Python - K Matrix Initialization

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:21:30

467 Views

Matrix is a popular data representation technique in mathematics, machine modeling, etc. They are designed to deal with linear functions. Matrix initialization is a process to fill up the elements (rows and columns) of the matrix with either random or some predetermined values. After initialization there should be no undefined ... Read More

Python - K length decimal Places

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:15:00

243 Views

In computer science we define decimal numbers to be the numbers which utilize base10 notations. For example 12, 4, 5.7, 99 are decimal numbers because they utilize base 10 notation. We can define the length of a decimal number as the number of digits present in the decimal ... Read More

Python - K length consecutive characters

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:12:17

2K+ Views

Consecutive characters are those characters that appear one after the other. k length consecutive characters mean the same character appearing k times consecutively. In this article, we will adopt several methods to achieve it. We will start with brute force by using loop statements. Next, we will perform the same ... Read More

Python - K length Combinations from given characters

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:09:06

403 Views

K length combinations from given characters mean the combinations of characters that we can create with the given characters, which are exactly of length k. In this article, we will explore several methods to achieve this, like recursion, map and lambda function, itertools library, etc. While recursion and lambda functions ... Read More

Python - Get Function Signature

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:07:06

2K+ Views

Understanding function signatures in Python is essential for unraveling the inner workings of functions. The inspect module offers a range of methods to retrieve signatures, allowing you to analyze parameters, access data types, and determine default values. By exploring these techniques, you can gain valuable insights that enhance code readability, ... Read More

Python - Get Even indexed elements in Tuple

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:05:32

428 Views

The Tuple is one of the most important data types in Python. They are exclusively used as the data structures to pass sequential data as the parameters of any method. Indexing refers to accessing the elements of the sequential data through the index. In this article, we will learn how ... Read More

How to Replace the Kth word in a String using Python?

Asif Rahaman

Asif Rahaman

Updated on 18-Jul-2023 14:03:32

219 Views

Strings are important data types in Python. Strings can be defined as the sequence of characters. Replacing the kth word in a String is an operation in which we want to replace the word which appears kth times in a String. In this article we will follow several methods to ... Read More

Advertisements