Pradeep Elance has Published 445 Articles

Append Odd element twice in Python

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:46:46

120 Views

In this article we will see how to take a list which contains some odd numbers as its elements and then add those odd elements repeatedly into the same list. Which means if odd number is present twice in a list then after processing the odd number will be present ... Read More

Append at front and remove from rear in Python

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:44:40

155 Views

When using Python for data manipulation we frequently and remove elements from list. There are methods which can do this effectively and python provides those function as part of standard library as well as part of external library. We import the external library and use it for this addition and ... Read More

Alternate range slicing in list (Python)

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:40:02

638 Views

Slicing is a very common technique for analyzing data from a given list in Python. But for our analysis sometimes we need to create slices of a list for a specific range of values. For example we need to print 4 elements by skipping every 4 elements from the list. ... Read More

after method in Python Tkinter

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:38:10

2K+ Views

Tkinter is a python library to make GUIs. It has many built in methods to create and manipulate GUI windows and other widgets to show the data and GUI events. In this article we will see how the after method is used in a Tkinter GUI.Syntax.after(delay, FuncName=FuncName) This method calls ... Read More

Adding a Chartsheet in an excel sheet using Python XlsxWriter module

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:34:40

352 Views

In addition to python’s own libraries, there are many external libraries created by individual authors which do a great job of creating additional features in python. Xlsx library is one such library which not only creates excel files containing data from python programs but also creates charts.Creating Pie ChartIn the ... Read More

Add the element in a Python list with help of indexing

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:32:17

128 Views

A python list is a collection data type that is ordered and changeable. Also, it allows duplicate members. It is the most frequently used collection data type used in Python programs. We will see how we can add an element to a list using the index feature.But before adding the ... Read More

Add similar value multiple times in a Python list

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 09:29:58

5K+ Views

There are occasions when we need to show the same number or string multiple times in a list. We may also generate these numbers or strings for the purpose of some calculations. Python provides some inbuilt functions which can help us achieve this.Using *This is the most used method. Here ... Read More

Python Program to print the diamond shape

Pradeep Elance

Pradeep Elance

Updated on 30-Dec-2019 11:53:13

303 Views

The looping features in python can be used to create many nicely formatted diagrams using various characters from the keyboard. One such shape is diamond shape which will involve multiple loops. This is because we have to print the character both vertically and horizontally. Also we have to take care ... Read More

Python - fmod() function

Pradeep Elance

Pradeep Elance

Updated on 30-Dec-2019 10:39:05

558 Views

the fmod()in python implements the math modulo operation. The remainder obtained after the division operation on two operands is known as modulo operation. It is a part of standard library under the math module. In the below examples we will see how the modulo operation gives different out puts under ... Read More

Find minimum of each index in list of lists in Python

Pradeep Elance

Pradeep Elance

Updated on 30-Dec-2019 10:36:09

2K+ Views

In some problems we need to identify the minimum of each element in a list. But in solving the matrix operations, we need to find the minimum of each column in the matrix. That needs us to find the minimum value from list of lists. Because each column of a ... Read More

Advertisements