Homepage Docodehere

Latest Posts

Python program to swap two elements in a list

In this article, we will learn to swap the two-element in a list using the python program.  Explanation List =   [13, 21, 24, 55, 64, 74] Po...

Ankur Ranpariya 25 May, 2022

Python program to interchange first and last elements in a list

In this article, we will learn to interchange the first and last elements in a list using the python program. Explanation First, we make a f...

Ankur Ranpariya 24 May, 2022

Python Program to check if given array is Monotonic

In this article, we will learn to check whether the array is monotonic or not using the python program. What is the monotonic array? An arra...

Ankur Ranpariya 23 May, 2022

Python Program for Find remainder of array multiplication divided by n

This article will learn to find the remainder of array multiplication divided by n using the python program. Explanation: arr = [11, 5, 4, ...

Ankur Ranpariya 21 May, 2022

Python Program to Split the array and add the first part to the end

In this article, we will learn to split the array and add the first part to the end of the array using the python program. Example k = 2 arr...

Ankur Ranpariya 19 May, 2022

Python Program for Reversal algorithm for array rotation

This article will teach you, how to use the Reversal algorithm for array using the python program. Example arr = [ 1, 2, 3, 4, 5, 6, 7, 8 ]...

Ankur Ranpariya 17 May, 2022

Symmetric Difference in python | HackerRank Solution

Problem Objective Today, we're learning about a new data type: sets. Concept If the inputs are given on one line separated by a characte...

Ankur Ranpariya 15 May, 2022