
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 26504 Articles for Server Side Programming

420 Views
In this article, we will learn how to add a custom column in a tuple list (i.e., a list of tuples) in Python. Tuples store sequences of data enclosed in parentheses as shown below: Tuples = (11, 22, 33) And the list of tuples is represented as follows: List of tuples = [(11, 22, 33), (44, 55, 66), (77, 88, 99)] Suppose we have a list called "students" that stores student data (i.e., name, age) as tuples. If we represent it in the form of rows and columns, the first element of the tuples ... Read More

668 Views
In this article, we will understand how to add a prefix to each key name in a Python dictionary. Dictionaries in Python are collections of unordered items stored in the form of key-value pairs inside curly braces like this − Dictionary = {key: value, ….} Our goal is to add a prefix (i.e., a word or character added at the beginning of another word) to each key name of the dictionary in Python. Suppose a key in a dictionary is "name", on adding the prefix "company_" to it, the key becomes "company_name". For example − #Input dictionary: Dictionary = ... Read More

118 Views
Working with datasets involves identifying the smallest value in a specific column and updating it by adding a constant value (K). By implementing an optimized solution, we can efficiently perform this operation, which is crucial for data manipulation and analysis tasks. Working with tuple lists is a common way to represent structured data, where each tuple corresponds to a row and contains multiple elements or attributes. In this case, we will focus on a specific column of the tuple list and target the minimum element within that column. Understanding the Problem Before looking at the solution, let's establish a ... Read More

264 Views
Image blurring is a fundamental technique in image processing that helps reduce noise and smooth out details. While traditional blur operations apply the same level of blurring uniformly across the entire image, adaptive blur takes it a step further by allowing variable blurring levels based on local image features. This enables us to preserve important details while effectively reducing noise and enhancing image quality. In this blog post, we'll explore how to implement adaptive blur using Python Wand, a powerful Python library for image manipulation. Python Wand provides a simple and intuitive interface for working with images and offers a ... Read More

356 Views
In Python, tuples are immutable sequences that can store multiple elements of different types. They are often used to represent collections of related values. Tuple summation involves adding the corresponding elements of two or more tuples to produce a new tuple. However, in some scenarios, it may be necessary to compute the absolute sum of the elements rather than the traditional sum. In this blog post, we will explore how to perform absolute tuple summation in Python. Traditional Tuple Summation Before diving into absolute tuple summation, let's first understand how to perform traditional tuple summation. Given two tuples of the ... Read More

6K+ Views
When working with hierarchical data in graphical user interfaces (GUIs), it's often necessary to display the data in a structured and organized manner. The Treeview widget in Python-Tkinter provides a powerful solution for presenting hierarchical data in a user-friendly way. However, as the number of items in the Treeview grows, it becomes crucial to include a scrollbar to ensure smooth navigation and usability. Firstly, ensure that you have Python and Tkinter installed on your system. Python 3 is recommended for compatibility and improved features. If you don't have Tkinter installed, you can easily install it using pip, the Python package ... Read More

3K+ Views
NumPy, the fundamental package for scientific computing in Python, provides powerful tools for working with homogeneous multidimensional arrays. While NumPy arrays excel at handling uniform data types efficiently, there are cases where we need to work with structured data containing heterogeneous types. This is where structured arrays come into play. Structured arrays in NumPy allow us to work with tabular or structured data, where each element of the array can have multiple fields with different data types. This capability makes NumPy a versatile library for handling a wide range of data, including CSV files, database tables, and more. Creating Structured ... Read More

1K+ Views
The Rubik's Cube, a 3D mechanical puzzle, has fascinated puzzle enthusiasts since its invention in 1974. Solving the Rubik's Cube can be a daunting task, but with the power of Python and the Pytwisty library, we can develop an efficient and elegant Rubik's Cube solver. In this blog post, we will explore the step-by-step process of building a Rubik's Cube solver using Python and Pytwisty. We will cover the necessary algorithms, data structures, and techniques to create a functional solver that can solve any scrambled Rubik's Cube configuration. Prerequisites Before we dive into the implementation, make sure you have the ... Read More

2K+ Views
In the realm of Python programming, we often encounter scenarios where audio output can greatly enhance the user experience or provide valuable feedback. The winsound module, available in the Windows operating system, is a powerful tool for generating sound effects, melodies, and simple tones directly from your Python scripts. In this blog post, we will delve into the capabilities of the winsound module and explore various examples of how it can be utilized effectively. Getting Started with Winsound The winsound module provides a straightforward interface for generating sound in Windows. Before we dive into the practical applications, let's first understand ... Read More

1K+ Views
When developing Python applications, it's often necessary to create programs that accept key-value pairs as input arguments. Key-value pairs provide a flexible way to pass data to a program, allowing customization and parameterization. Fortunately, Python offers a powerful module named argparse that simplifies the process of building command-line interfaces, including handling key-value pairs. When it comes to building command-line interfaces in Python, the argparse module is an incredibly useful tool. It simplifies the process of handling command-line arguments and provides a clean and intuitive way to define and parse them. The argparse module offers a wide range of functionalities, including ... Read More