Found 26504 Articles for Server Side Programming

Move all the files from subfolders to the main folder using Python

Nikitasha Shrivastava
Updated on 16-Oct-2023 12:04:10

1K+ Views

The given problem statement is to relocate all the files from the subfolders to the main folder using Python. So we will use the OS and Shutil libraries of Python to do this task. Understanding the Logic for the Problem In this task, we are required to move all the files that exist in the subfolder in the main folder using Python programming language. So for doing this process we will specify the source folder path and destination or main folder path. And we will be using python’s os and shutil libraries for doing this task. So first we will ... Read More

motion_blur() in Python Wand

Nikitasha Shrivastava
Updated on 16-Oct-2023 12:03:21

94 Views

In the given problem statement we have to apply a motion_blur function for an image using the Python wand library. Sometimes we are needed to perform the blur operation on some images. So using the Python wand we can do this task easily and blur the image to any extent. What is Python Wand? The wand is a tool, which is used to convert the format of images. It can convert the image from one format to another. This library provides a wide range of functions to perform different kinds of operations of the image for manipulating them. To install ... Read More

Modify Equal Tuple Rows in Python

Nikitasha Shrivastava
Updated on 16-Oct-2023 12:01:43

91 Views

In this article we will learn how to modify equal tuple rows with the help of Python programming. Whenever we talk about data, sometimes we need to modify that data also. So here we will modify equal tuple rows data as per the equality of the records. Understanding the Problem The problem at hand is to modify the given tuple for equal rows using python. So we will be having a list of tuples and our task is to modify as per the condition for the particular tuple row in the given list. Let's see the usage of the following ... Read More

How to move and overwrite files and folders using Python?

Nikitasha Shrivastava
Updated on 16-Oct-2023 12:01:03

3K+ Views

The files are very important documents in our systems. In files we store our important data and moving these files is also an important task to organize the system. So we will learn how to move and also overwrite the files and folders using Python modules. Understanding the Logic for the Problem The problem at hand is that we have to create a code for moving and overwriting the files and folders in Python. For solving this problem we will import os and shutil libraries of Python. So with the help of these libraries we can move and overwrite the ... Read More

Finding the Summation of Nested Record Values in Python

Nikitasha Shrivastava
Updated on 16-Oct-2023 11:58:04

107 Views

The problem statement requires finding the summation of nested record values using Python. Sometimes we are required to add the values present in the data so that time this approach can be useful as record is the powerful dataset in terms of updating or manipulating the data using the keys. Understanding the Problem The given problem is to find the addition of values in the given record so here we will be using the nested dictionary as a record. And we will implement the code using Python. And the nested dictionaries are the dictionary inside the dictionary. And we have ... Read More

Finding the Summation of Nested Dictionary Values in Python

Nikitasha Shrivastava
Updated on 16-Oct-2023 10:49:14

856 Views

Sometimes we need to sum up the values of nested dictionary values so in this problem statement we are required to find the summation of the nested dictionary values using Python. Understanding the Problem The problem at hand is to find the summation of values present in the nested dictionary and we have to implement the code using Python. So the nested dictionaries are the dictionary inside the dictionary. And we have to find the nested values and sum them up as a result. Sum for all the Nested Dictionary Values In this approach we will add all the values ... Read More

Find the Mirror Image of a String using Python

Nikitasha Shrivastava
Updated on 16-Oct-2023 10:36:03

540 Views

In the given problem statement we are required to find the mirror image of a given string with the help of Python code. Understanding The Problem The problem at hand is to find the mirror image of the given string. The mirror image is the changed version of the given string in which every character is replaced with the mirror image of that character. Or we can say it is the reflection of the string. In real life we see ourselves in the mirror so our right part is visible in the left side in the mirror and similarly the ... Read More

iconphoto() method in Tkinter - Python

Rohan Singh
Updated on 16-Oct-2023 12:01:43

2K+ Views

Tkinter is a Python library that is used for creating graphical user interfaces (GUIs). Tkinter provides various methods and functionalities to enhance and customize the appearance of the GUI application window. The iconphoto() method is used to set icons for the Tkinter application window. In this article, we will understand how the iconphoto() method is used set icons for the GUI application window created using tkinter. Understanding the iconphoto() Method The iconphoto() method in the tkinter is used to set icons for the tkinter window. Usually, the icon of the application is visible on the application title bar, taskbar, and ... Read More

HTML Cleaning and Entity Conversion - Python

Rohan Singh
Updated on 16-Oct-2023 12:00:11

749 Views

Hypertext markup language i.e. HTML is a markup language that is used to create webpages content on the internet. HTML document files may contain some unwanted or malicious elements which can cause several issues while rendering the webpage. Before processing the HTML content we need to perform HTML cleaning for removal and cleaning of the malicious elements in the file. HTML entities are special characters that need to be converted into corresponding HTML representations to ensure proper rendering in browsers. In this article, we will understand cleaning and entity conversion methods using Python. HTML Cleaning HTML cleaning is done ... Read More

How to Zip two lists of lists in Python?

Rohan Singh
Updated on 16-Oct-2023 11:58:35

3K+ Views

Two lists of lists can be merged in Python using the zip() function. Combining two lists of lists can be particularly valuable when dealing with tabular or multidimensional data, as it allows for combining related information from different sources. The zip() function, a powerful built-in tool in Python, facilitates this process by pairing corresponding elements from the sublists and generating a new list. In this article, we will explore how to zip two lists of lists in Python using the zip() function. Algorithm A general algorithm to zip two lists of lists is as follows: Create two lists ... Read More

Advertisements