Programming Articles

Page 10 of 2547

Python - Column wise sum of nested list

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 811 Views

A nested list in Python is a list that contains other lists as elements, creating a multidimensional structure. When working with nested lists representing tabular data, calculating column-wise sums is a common requirement. In a nested list structure where each inner list represents a row, the elements at the same index across different inner lists form columns. Let's explore different methods to calculate column-wise sums. Understanding Nested List Structure Consider a nested list where each inner list represents a row of data: nested_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print("Nested list:", ...

Read More

Python - Column Product in List of lists

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 245 Views

The column product refers to the result of multiplying all the values within a specific column of a dataset. In a tabular representation of data, such as a list of lists or a spreadsheet, each column typically represents a variable or a feature, and the values within that column represent individual observations or measurements. When calculating the column product, the values within a specific column are multiplied together to obtain a single value that represents the combined effect of the variables or observations within that column. This can be useful in various data analysis and modeling scenarios, such as ...

Read More

Python - Column summation uneven in sized lists

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 182 Views

Column summation refers to the process of calculating the sum of values within each column of a dataset or matrix. In Python, this becomes challenging when dealing with uneven-sized lists where columns have different lengths. What is Column Summation Column summation involves adding up values within each column to obtain a single sum for each variable. Consider this dataset representing heights in centimeters across three measurements ? Measurement 1 Measurement 2 Measurement 3 Person 0 170 175 180 Person 1 165 168 172 Person 2 180 182 178 ...

Read More

Python - Column Mean in tuple list

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 441 Views

The column mean in a tuple list refers to the average value of elements within each column of the tuple data. A tuple list is a collection of tuples, where each tuple represents a record or observation, and the elements within each tuple correspond to different columns or variables. Column means are particularly useful when dealing with numerical data and performing statistical analysis or making data-driven decisions. For example, consider the following tuple list: data = [(1, 2, 3), (4, 5, 6), ...

Read More

Create a Pomodoro Using Python Tkinter

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 2K+ Views

The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. It uses 25-minute focused work sessions followed by short breaks to improve productivity. In this tutorial, we will create a functional Pomodoro timer using Python's Tkinter module. What is Pomodoro? Francesco Cirillo, a university student at the time, invented the Pomodoro Method in the late 1980s. Cirillo was having difficulty focusing on his academics and completing homework. He asked himself, feeling overwhelmed, to commit to only 10 minutes of dedicated study time. Inspired by the challenge, he discovered a tomato-shaped kitchen timer ...

Read More

Create a Python Script Notifying to take a break

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 352 Views

In today's digital world, we spend countless hours in front of screens, whether working on computers or scrolling through phones. Prolonged screen time and sitting can lead to various health issues including eye strain, musculoskeletal problems, and cardiovascular disease. This tutorial shows you how to create a Python script that sends desktop notifications reminding you to take regular breaks. Health Risks of Extended Screen Time Extended periods of screen time can cause several health problems ? Musculoskeletal Problems − Prolonged sitting causes neck, back, and shoulder pain due to poor posture and muscle strain. Eye Strain ...

Read More

Create a Pull request on GitHub using Pycharm

Tamoghna Das
Tamoghna Das
Updated on 27-Mar-2026 824 Views

Creating a pull request on GitHub using PyCharm involves both the IDE's built-in Git integration and Python's GitPython library for programmatic operations. This tutorial covers the complete workflow from forking a repository to merging your contributions. Prerequisites Before starting, ensure you have the following − Python installed on your system PyCharm IDE installed A GitHub account GitPython library installed Installing GitPython Install the GitPython library using pip − pip install GitPython GitPython allows you to interact with Git repositories programmatically, enabling operations like cloning, committing, and creating pull requests ...

Read More

What is Tkinter’s tkapp?

Gaurav Leekha
Gaurav Leekha
Updated on 27-Mar-2026 838 Views

Tkinter is Python's standard library for creating graphical user interfaces (GUIs). At the heart of every Tkinter application is the tkapp - the root window object that serves as the foundation for your entire GUI application. What is Tkinter's tkapp? The tkapp is the main application object in Tkinter, created using the Tk() constructor. It represents the root window that contains all other widgets and controls in your application ? import tkinter as tk # Create the root window (tkapp) root = tk.Tk() root.title("My Tkinter Application") root.geometry("400x300") root.mainloop() [Opens a window with ...

Read More

What are the parameters of configure method of tkinter/tk()?

Gaurav Leekha
Gaurav Leekha
Updated on 27-Mar-2026 8K+ Views

The Tkinter library is a popular tool for building graphical user interfaces (GUIs) in Python. It provides a variety of methods and functionalities to create and customize GUI applications. One of the essential methods in Tkinter is the configure() method, which allows you to modify the parameters of a widget dynamically after creation. Syntax The configure() method is used to modify the attributes or options of a widget in Tkinter. The general syntax is ? widget.configure(option=value, option2=value2, ...) Here, widget refers to the widget object, and option represents the specific parameter you want to ...

Read More

Tkinter difference between and >

Gaurav Leekha
Gaurav Leekha
Updated on 27-Mar-2026 1K+ Views

Graphical User Interfaces (GUIs) play a vital role in modern software applications, allowing users to interact with programs through intuitive visual elements. Tkinter, the de facto standard GUI toolkit for Python, provides a robust set of tools and widgets to build GUI applications. In Tkinter, event handling is a fundamental concept, allowing developers to respond to user actions such as button clicks, key presses, and mouse movements. Two commonly used event formats in Tkinter are and . In this article, we will explore the differences between these two event formats and discuss their appropriate use cases. The ...

Read More
Showing 91–100 of 25,466 articles
« Prev 1 8 9 10 11 12 2547 Next »
Advertisements