Found 34494 Articles for Programming

Python - Minimum Product Pair in List

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:28:27

53 Views

In the given problem statement, we have to find the minimum product pair in the given list and list of tuples. So we will use Python to implement the code. Understanding the Problem The problem at hand is to find the minimum product from the given list and create a program in Python. Or we can say that we have to find the pair of numbers whose multiplication is minimum as compared to the other pairs in the list. There are many ways to solve this problem. So we will use list and list of tuples to showcase this ... Read More

Python - Minimum in tuple list value

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:27:12

101 Views

The problem at hand is to find the minimum value from the given tuple list using python programming language. So basically whenever we talk about finding the minimum value we use the min function defined in the built-in function of Python. In this article we will see different approaches to get the minimum value from the tuple list. What is the tuple list or list of tuples? The tuple list or we can also say list of tuples, is a data structure in Python programming. Tuple list contains multiple tuples as its items. Or we can say that every element ... Read More

Python - Minimum in each record value list

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:33:11

50 Views

The problem statement says that we have to find the minimum value present in each record value list. So in this article we will see different ways to find the minimum in each record. Understanding the problem In the given problem we are required to find the minimum value of each subarray. For example: let’s say we have an array as [[8, 10, 12], [12, 14, 16], [17, 18, 19]], so in this example we can see the minimum values for every subarray are 8, 12, 17 as these arrays are in a sorted form. So the required result should ... Read More

Python - Minimum identical consecutive Subarray

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:10:16

37 Views

The problem we have is to find the minimum identical consecutive subarray in the given array and implement this algorithm using Python. So we will use basic functionalities of Python to get the desired result. Understanding the Problem In the given problem statement we are required to find the shortest identical consecutive subarray present in the given input array. So we will be having an array with some repetitive items and we have to show the subarray with minimum repetitive items count. For example: suppose we have an array as [0, 0, 2, 2, 2, 3, 3, 3, 3, 5, ... Read More

Notebook in Python GTK+ 3

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:09:18

102 Views

In this article we will be creating the multi tabbed Notebook Graphical user interface with the help of Python GTK + 3. So we will be creating a window which will look like a notebook. Understanding the Problem The problem at hand is to create a notebook using Python GTK + 3. If the GTK + 3 package is not installed on your system then we can install this package with the help of command ‘pip install pygobject’ or using ‘MSYS2’ packages in windows. So we will create a window and inside the window there will be two tabs or ... Read More

Moving an object in PyGame

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:08:29

548 Views

The given problem is to develop a program for moving an object with the help of PyGame, which is a set of Python modules to develop video games. Understanding the problem and its Logic So in this article we will create an algorithm and program to move an object from one place to another place using the PyGame module of Python. And we will import the necessary modules for PyGame and initialize the PyGame. After that we need to create a game window and set its dimensions. Then we will set the object’s dimensions, size, color and position. And we ... Read More

Move() function in wxPython

Nikitasha Shrivastava
Updated on 16-Oct-2023 13:05:22

47 Views

In this article, we are required to perform the move operation using the move function which is a built-in function in wxPython. And ‘wxPython’ is basically a GUI library of Python. What is wxPython? As we know that Python provides many libraries for developers to improve the code and minimize the time to develop an application so wxPython is also one of them. The wxPython is a toolkit for developing a graphical user interface (GUI) in python. With the help of this library the developers can create GUIs with a native look and feel. And the application can be performed ... Read More

Introduction to Vaex in Python

Harischandra Prasad
Updated on 16-Oct-2023 12:41:18

130 Views

In the realm of data science, one of the important aspects that we need to consider is handling large datasets. Handling such vast volumes of data is really a challenge when it comes to memory management and Speed of execution. Vaex is a Python library that is designed specifically to solve such problems. It is particularly useful for Out-of-Core Data Frames that are lazy (like Pandas) because calculations are only performed when it is necessary. It offers good solutions in terms of Big data analysis, manipulation, and visualisation. We will explore the idea of Vaex, its features, and how to ... Read More

How to Create Spring Bean in 3 Different Ways?

Harischandra Prasad
Updated on 16-Oct-2023 12:40:08

871 Views

Spring is a highly popular framework within the Java EE ecosystem. It is an open-source and lightweight framework that empowers Java developers to build reliable, scalable, and simplified business applications. The primary goal of this framework is to offer you a variety of tools for managing your business items. In contrast to conventional Java frameworks and APIs such as JSP, JDBC and Java Servlet, developing web applications is far simpler. In Spring, objects—primarily those controlled by the Spring IoC Container. It plays a significant role in the application. A Bean is nothing more than an object that a Spring Ioc ... Read More

How to Create Hyperlink in Spreadsheet using Java?

Harischandra Prasad
Updated on 16-Oct-2023 12:37:18

93 Views

Java programmers may create, edit, and display MS Office files using the widely used Apache POI API. Through its classes and methods, this open-source library developed by the Apache Software Foundation provides a variety of functions for turning user input data or files into Microsoft Office documents. Apache POI's versatility and reliability have made it a popular option among developers worldwide. Its broad capability and smooth integration make it an invaluable asset for any project needing MS Office file handling. The API's continuous updates and active community guarantee that it is always up to date with the newest file format ... Read More

Advertisements