Pawandeep has Published 50 Answers

How to develop a game in Python?

pawandeep

pawandeep

Updated on 25-Feb-2022 08:06:02

We can develop games in Python using PyGame. PyGame is a Python module that is used to develop games. This module includes computer graphics and sound libraries used in video game development.Install PyGameTo develop game in Python, we need PyGame. Therefore, we need to install PyGame.We should Python and pip ... Read More

What is Heap Sort in Python?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:52:39

Heap Sort is the sorting technique based on binary heap data structure. In order to proceed with heap sort, you need to be familiar with binary tree and binary heap.What is a Complete binary tree?A complete binary tree is a tree data structure where all the levels except the last ... Read More

Which is the fastest implementation of Python

pawandeep

pawandeep

Updated on 11-Jun-2021 12:51:50

Python has many active implementations. We will be addressing its different implementations and know which is the fastest implementation.Different implementations of Python −IronPython − This is the Python implementation which runs on .NET framework. This implementation is written in C#. It uses .net virtual machine for running. IronPython can use the ... Read More

What is Python Unit Testing?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:51:30

What is unit testing?Unit testing is a type of software testing where each individual component of the system is tested. Unit testing is important practice for the developers. It ensures that every component of the software is functioning appropriately as expected. Unit testing is mainly performed by the developers during ... Read More

How to read JSON file in Python

pawandeep

pawandeep

Updated on 11-Jun-2021 12:51:04

What is a JSON file?JSON stands for JavaScript Object Notation. It is commonly used for transmitting data in web applications( such as sending data from server to client to display on the web pages).Sample JSON FileExample 1: {    "fruit": "Apple",    "size": "Large",    "color": "Red" }Example 2: { ... Read More

Logging in Python Program

pawandeep

pawandeep

Updated on 11-Jun-2021 12:50:34

Whenever we build a software and run it, there may arise some errors or exceptions which hinder the normal execution of the software. Logging helps us to keep the track of the events which takes place when a software is running. Logging is normally useful in software development process especially ... Read More

What is Insertion sort in Python?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:50:08

Insertion sort is the simple method of sorting an array. In this technique, the array is virtually split into the sorted and unsorted part. An element from unsorted part is picked and is placed at correct position in the sorted part.The array elements are traversed from 1 to n.If the ... Read More

How to create a DataFrame in Python?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:49:41

Dataframe is a 2D data structure. Dataframe is used to represent data in tabular format in rows and columns. It is like a spreadsheet or a sql table. Dataframe is a Pandas object.To create a dataframe, we need to import pandas. Dataframe can be created using dataframe() function. The dataframe() ... Read More

How to connect Database in Python?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:49:17

Most of the applications need to be integrated or connected with a database for performing certain relevant operations. The majority of projects require database connectivity to store certain data about the users. MySQL Database can be integrated with the Python applications.To connect MySQL database, we need to have it installed ... Read More

How to clear Python shell?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:48:51

Python provides a python shell which is used to execute a single Python command and display the result. It is also called REPL. REPL stands for Read, Evaluate, Print and Loop. The command is read, then evaluated, afterwards the result is printed and looped back to read the next command.Sometimes ... Read More

Advertisements