The index() method is used to find the position of a particular element in the Python List. Since it is a method of list class, it’s called using a .(dot) operator on list. It checks every element from the starting of the list until it finds a match. The index in python is start from 0. Syntax Method returns zero-based index element in the list whose value is equal to x. … Read More »How to Get Index of an Element in Python List
You might have noticed some times Microsoft Word automatically converts text into required fraction you need. But for most of the case, Word doesn’t do this magical conversion. It happens because, Ms Word has autocorrect feature enabled by default that convert commonly used fractions like 1/2, 1/4 and 3/4 to fraction characters like , and . However using this feature you can convert only a handful of fraction automatically. It… Read More »How to Type Fraction in Word: Tips and Tricks to Write Fractions
How to Type Fraction in Word: Tips and Tricks to Write Fractions
Python is famous for its elegant coding style that is concise, easy to write and almost as easy to read as plain English. List comprehension in python is one of the distinctive feature which provides a powerful functionality within a single line of code. It’s one of the advanced topic of Python that is very easy to learn, implement and practically useful. It makes your code concise, readable and boost… Read More »List Comprehension In Python
List Comprehension In Python
What is Web Scraping? In simple words, Web Scraping is an extraction of data from a website. For example, some websites contains an extensive amount of invaluable data like stock prices, product’s details and sports stats, so if you want to access their information, either you will copy or paste information manually or write a code (Web Scrapping) that automates it. Web scraping is also known as web data mining… Read More »Web Scraping using Python: Tutorial on how to extract data from website using Python
Web Scraping using Python: Tutorial on how to extract data from website using Python
Kadane algorithm is the fastest and optimized algorithm of Maximum Sum Subarray problem. Maximum sum subarray is the contiguous subarray within a given one dimension array with the largest sum. This problem is one of the classical interview questions in IT companies like Google, Apple, Amazon, LinkedIn, Facebook, Microsoft, Uber, and many more. For example, for an array, a = [-2, -4, 4, -2, -1, 1, 5, -7] A contiguous… Read More »Kadane algorithm for Maximum sum subarray problem: Java, Python and C++ code of Kadane algorithm
Kadane algorithm for Maximum sum subarray problem: Java, Python and C++ code of Kadane algorithm
Understanding List is one of the most important thing for anyone who just started coding in Python. You may need to add an element to the list whether at the end or somewhere in between. Although it can be done manually with few lists of code, built in function come as a great time saver. There are 3 in-build method to add an element in a list. Beginners sometimes got… Read More »3 Methods to Add Elements to List in Python || Append vs Extend vs Insert methods of Python
3 Methods to Add Elements to List in Python || Append vs Extend vs Insert methods of Python
The insert() method inserts an element to the list at a given index. The index() method searches for an element in the list and returns its index. Syntax of Insert() Method list.insert(index, element) Insert() Parameters This method takes two parameter index where an element needs to be inserted element is the element to be inserted in the list. This method doesn’t return any value. It just insert an element at the given index.… Read More »Insert Method in Python
Insert Method in Python
Have you ever wondered: “How to add elements of one list to another?” The extend method of Python helps you to do exactly this.It is an in-build method that adds elements of specified list to the end of the current list. Since it is a method of class list, you use it by using dot(.) Operator on list. It doesn’t return any value but add the content to the existing… Read More »Extend Method in Python List
Extend Method in Python List
Microsoft has recently decided to give latest version of Ms Office 365 for free. This means you can use Word, Power Point, Excel & other office apps free.
Microsoft is giving Ms Office 365 Free: Two ways to get all office application for free
Append() method is in-build Python method operating on list. Append method of python helps to add an object at the end of the existing list. It does not return the new list but instead modifies the original. Syntax of the Append() list.append(element) How Does Append() Method Works The method takes a single argument. element – an element to be added at the end of the listThe element can be numbers,… Read More »Python List Append() Method