Pradeep Elance has Published 417 Articles

Python - Check if a given string is binary string or not

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:25:39

7K+ Views

In this article we check if a given string has characters which are only 1 or 0. We call such strings as binary strings. If it has any other digit like 2 or 3 etc., we classify it as a non-binary string.With setThe set operator in python stores only unique ... Read More

Password validation in Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:22:16

3K+ Views

It is a general requirement to have a reasonably complex password. In this article we will see how to validate if a given password meats certain level of complexity. For that will use the regular expression module known as re.Example -1First we create a regular expression which can satisfy the ... Read More

Multi-dimensional lists in Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:19:39

9K+ Views

Lists are a very widely use data structure in python. They contain a list of elements separated by comma. But sometimes lists can also contain lists within them. These are called nested lists or multidimensional lists. In this article we will see how to create and access elements in a ... Read More

MongoDB and Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:17:08

685 Views

MongoDB is a widely used document database which is also a form of NoSQL DB. Python can interact with MongoDB through some python modules and create and manipulate data inside Mongo DB. In this article we will learn to do that. But MongoDB should already be available in your system ... Read More

Launching parallel tasks in Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:15:01

380 Views

If a Python program can be broken into subprograms who is processing do not depend on each other, then each of the subprogram can be run in parallel when the overall program is being run. This concept is known as parallel processing in Python.With multiprocessingThis module can be used to ... Read More

Interpreting stat() results using Python

Pradeep Elance

Pradeep Elance

Updated on 10-Jul-2020 11:12:28

433 Views

The stat() method is part of OS module which describes various OS related operations on files and directories. For example, if we want to know various user defined flags for a file or size of the file in bytes.Functions in os.stat() moduleBelow is a list of some sample functions available ... Read More

Importing Data in Python

Pradeep Elance

Pradeep Elance

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

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

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

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

Advertisements