We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: item

Python : How to Check if an item exists in list ? | Search by Value or Condition

In this article we will discuss different ways to check if a given element exists in list or not. Table of Contents Introduction Check if element exists in list using python “in” Operator Check if element exist in list using list.count() function Check if element exist in list based on custom logic Introduction Suppose we …

Python : How to Check if an item exists in list ? | Search by Value or ConditionRead More

Python: How to sort a list of tuples by 2nd Item using Lambda Function or Comparator

In this article we will discuss how to sort a list of tuple using 2nd or i th item of tuple. Suppose we have a list of tuple i.e. words and thier frequency count, Advertisements # List of tuples i.e. word and its frequency count wordFreq = [ (‘the’ , 34) , (‘at’ , 23), …

Python: How to sort a list of tuples by 2nd Item using Lambda Function or ComparatorRead More

Javascript: Insert an item to array at specific index

While working with javascript arrays, often there is a requirement to insert an item at a specific index in javascript. This article will discuss adding an element to an array at a particular index. Table of Contents:- Insert element in array at specific position using splice() Insert element in array at specific position using reduce() …

Javascript: Insert an item to array at specific indexRead More

Cart

Your Cart is Empty

Back To Shop