Pradeep Elance has Published 417 Articles

Adding a Chartsheet in an excel sheet using Python XlsxWriter module

Pradeep Elance

Pradeep Elance

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

467 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

198 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

7K+ 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 - 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

Event scheduler in Python

Pradeep Elance

Pradeep Elance

Updated on 23-Dec-2019 10:35:38

2K+ Views

Python gives us a generic scheduler to run tasks at specific times. We will use a module called schedule. In this module we use the every function to get the desired schedules. Below is the features available with the every function..SynatxSchedule.every(n).[timeframe] Here n is the time interval. Timeframe can be ... Read More

Adding value to sublists in Python

Pradeep Elance

Pradeep Elance

Updated on 23-Dec-2019 10:35:02

842 Views

Sometimes we need to introduce an additional value to an already existing list. In this article we will see how the new value or values can be inserted into an already existing list by combining with each item of the existing list.Using For LoopIf we take a list which has ... Read More

Turtle graphics using Python

Pradeep Elance

Pradeep Elance

Updated on 23-Dec-2019 10:33:05

28K+ Views

Turtle is a Python library to draw graphics. After we import Turtle we can give commands like forward, backward, right, left etc. This commands will draw different shapes when we. When We combine Search commands we can create many nice graphics in the below example we will see some simple ... Read More

Python - Get the Index of first element greater than K

Pradeep Elance

Pradeep Elance

Updated on 23-Dec-2019 10:25:05

2K+ Views

The values of items in a python list are not necessarily in any sorted order. More over there may be situation when we are interested only in certain values greater than a specific value. In this article we will see how we can get theUsing EnumerationUsing enumeration we get both ... Read More

Python - Get sum of tuples having same first value

Pradeep Elance

Pradeep Elance

Updated on 23-Dec-2019 10:22:16

483 Views

Tuples are python collections or arrays which are ordered but unchangeable. If we get a number of tuples where the first element is the same, then we may have a scenario when we need to add the second elements of those tuples whose first elements are equal.Using map and for ... Read More

Python - geometry method in Tkinter

Pradeep Elance

Pradeep Elance

Updated on 23-Dec-2019 10:11:32

8K+ Views

Python has capability to create GUI applications using the Tkinter library. The library provides many methods useful for GUI applications. The geometry method is a fundamental one which decides the size, position and some other attributes of the screen layout we are going to create.Example - 1In the below program ... Read More

Advertisements