Pradeep Elance has Published 445 Articles

Importing Data in Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:10:27

15K+ Views

When running python programs, we need to use datasets for data analysis. Python has various modules which help us in importing the external data in various file formats to a python program. In this example we will see how to import data of various formats to a python program.Import csv ... Read More

GET and POST requests using Python Programming

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 10:59:24

3K+ Views

Python can be used to access webpages as well as post content to the webpages. There are various modules like httplib, urllib, httplib2 etc but the requests module is simplest and can be used to write simpler yet powerful programs involving GET and POST methods.GET methodThe GET method is part ... Read More

Catching the ball game using Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 09:55:19

914 Views

Python can also be used to create computer games. In this article we will see how the ball catching game can be created using python. In this game a ball keeps falling from the top of a canvas window and a bar is present at the bottom of the window. ... Read More

Calculate difference between adjacent elements in given list using Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 09:49:06

1K+ Views

In this article we will see how we create a new list from a given list by subtracting the values in the adjacent elements of the list. We have various approaches to do that.With append and rangeIn this approach we iterate through list elements by subtracting the values using their ... Read More

Binding function in Python Tkinter

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 09:47:21

2K+ Views

In python tkinter is a GUI library that can be used for various GUI programming. Such applications are useful to build desktop applications. In this article we will see one aspect of the GUI programming called Binding functions. This is about binding events to functions and methods so that when ... Read More

Associating a single value with all list items in Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 09:44:13

246 Views

We may have a need to associate a given value with each and every element of a list. For example − there are the name of the days and we want to attach the word day as a suffix in them. Such scenarios can be handled in the following ways.With ... Read More

Standard errno system symbols in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Jul-2020 13:54:07

347 Views

Every programming language has a error handling mechanism in which some errors are already coded into the compiler. In Python we have love which are associated with some standard pre-determined error codes. In this article we will see how to to get the error numbers as well as error codes ... Read More

Python module to Generate secure random numbers

Pradeep Elance

Pradeep Elance

Updated on 09-Jul-2020 13:52:01

208 Views

In this article we will see how we can generate secure Random numbers which can be effectively used as passwords. Along with the Random numbers we can also add letters and other characters to make it better.with secretsThe secrets module has a function called choice which can be used to ... Read More

Python Get the numeric prefix of given string

Pradeep Elance

Pradeep Elance

Updated on 09-Jul-2020 13:49:25

288 Views

Suppose we have a string which contains numbers are the beginning. In this article we will see how to get only the numeric part of the string which is fixed at the beginning.With isdigitThe is digit function decides if the part of the string is it digit or not. So ... Read More

Python Get a list as input from user

Pradeep Elance

Pradeep Elance

Updated on 09-Jul-2020 13:46:54

9K+ Views

In this article we will see you how to ask the user to enter elements of a list and finally create the list with those entered values.With format and inputThe format function can be used to fill in the values in the place holders and the input function will capture ... Read More

Advertisements