Pradeep Elance has Published 446 Articles

How to run Python code on Google Colaboratory?

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 13:25:07

361 Views

Google Colaboratory is a free Jupyter notebook environment that requires no setup and runs entirely in the cloud. It is hosted in google cloud and maintained by Google for the benefit of python coders who want to run and test python scripts using a cloud environment. In this article, we ... Read More

How to implement Dictionary with Python3

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 13:20:17

192 Views

Dictionaries in python are a type of data structure that map keys to values as a key-value pair. They are one of the frequently used data structures and have many interesting properties. They are presented by enclosing them in a pair of curly brace like below.dict = {'day1':'Mon' ,'day2':'Tue', 'day3':'Wed'}The ... Read More

What is Heap queue (or heapq) in Python?

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 13:12:58

168 Views

Heap queue is a special tree structure in which each parent node is less than or equal to its child node.In pythin it is implemented using the heapq module. It is very useful is implementing priority queues where the queue item with higher weightage is given more priority in processing. ... Read More

Guide to Install MongoDB with Python in Windows

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 13:08:55

449 Views

Get MongoDBTo install MongoDB on Windows, first, download the latest release of MongoDB from https://www.mongodb.org/downloads. Below is an example of selecting a 64-bit version for windows as a msi installer.Install MongoDBNext, we follow the below steps to install MongoDB. As it is a windows installation using the msi installer, the ... Read More

Graph Plotting in Python

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 13:03:28

785 Views

Python has the ability to create graphs by using the matplotlib library. It has numerous packages and functions which generate a wide variety of graphs and plots. It is also very simple to use. It along with numpy and other python built-in functions achieves the goal. In this article we ... Read More

Global keyword in Python

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 12:58:23

634 Views

Different variables in a python program have different scope. Depending on where it is declared, the variable may or may not be accessible inside a function. Sometimes we will need to modify a variable that is present inside a function from outside its current scope. In such a scenario we ... Read More

getpass() and getuser() in Python (Password without echo)

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 12:53:09

1K+ Views

When you create some python programs that need password protection before it can run, we take the help of the getpass() and getuser() modules. They have a variety of functionalities that can be used to manage password protection as well as password retrieval etc. In this article, we will see ... Read More

Few mistakes when using Python dictionary

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 12:41:09

181 Views

Dictionaries in python are a type of data structure that map keys to values as a key-value pair. They are one of the frequently used data structures and have many interesting properties. They are presented by enclosing them in a pair of curly brace like below.dict = {'day1':'Mon' ,'day2':'Tue', 'day3':'Wed'}The ... Read More

Enumerate() in Python

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 12:35:02

1K+ Views

When using the iterators, we need to keep track of the number of items in the iterator. This is achieved by an in-built method called enumerate(). The enumerate() method adds counter to the iterable. The returned object is a enumerate object. Its syntax and parameters are described below.enumerate(iterable, start=0) iterable ... Read More

Datagram in Python

Pradeep Elance

Pradeep Elance

Updated on 17-Oct-2019 12:24:35

428 Views

Chunks of data move between the clients and servers using the User Datagram Protocol or UDP protocol. The two communicating endpoints need the IP address and port number to establish communication. One endpoint is known as the sender and the other is known as the receiver. In this protocol, the ... Read More

Advertisements