# Category Archives: Python

## numpy.tan() in Python

numpy.tan(array[, out]) = ufunc ‘tan’) : This mathematical function helps user to calculate trignometric tangent for all x(being the array elements). Parameters : array :… Read More »

## numpy.cos() in Python

numpy.cos(x[, out]) = ufunc ‘cos’) : This mathematical function helps user to calculate trignmetric cosine for all x(being the array elements). Parameters : array :… Read More »

## numpy.sin() in Python

numpy.sin(x[, out]) = ufunc ‘sin’) : This mathematical function helps user to calculate trignmetric sine for all x(being the array elements). Parameters : array :… Read More »

## FuzzyWuzzy Python library

There are many methods of comparing string in python. Some of the main methods are: Using regex Simple compare Using difflib But one of the… Read More »

## Python | Sort a tuple by its float element

In this article, we will see how we can sort a tuple (consisting of float elements) using its float elements. Here we will see how… Read More »

## Python | Print list after removing element at given index

Given an index, remove the element at that index from the list and print the new list. Examples: Input : list = [10, 20, 30,… Read More »

## Extending a list in Python (5 different ways)

Extending a list in python can be done is following ways: 1. Using append() function: We can append at the end of the list by… Read More »

## Python | Check if all the values in a list that are greater than a given value

Given a list, print all the values in a list that are greater than the given value Examples: Input : list = [10, 20, 30,… Read More »

## Python Set difference to find lost element from a duplicated array

Given two arrays which are duplicates of each other except one element, that is one element from one of the array is missing, we need… Read More »

## Python List Comprehension to find pair with given sum from two arrays

Given two unsorted arrays of distinct elements, the task is to find all pairs from both arrays whose sum is equal to x. Examples: Input… Read More »

## Python | Get unique values from a list

Given a list, print all the unique numbers in any order. Examples: Input : 10 20 10 30 40 40 Output : 10 20 30… Read More »

## Python | Convert a list of Tuples into Dictionary

Sometimes you might need to convert a tuple to dict object to make it more readable. In this article, we will try to learn how… Read More »

## Python | Check whether two lists are circularly identical

Given two lists, check if they are circularly identical or not. Examples: Input : list1 = [10, 10, 0, 0, 10] list2 = [10, 10,… Read More »

## Image Classifier using CNN

The article is about creating an Image classifier for identifying cat-vs-dogs using TFLearn in Python. The problem is here hosted on kaggle. Machine Learning is… Read More »

## Prefix sum array in Python using accumulate function

We are given an array, find prefix sums of given array. Examples: Input : arr = [1, 2, 3] Output : sum = [1, 3,… Read More »