Found 27104 Articles for Server Side Programming

Python - Repeat and Multiply List Extension

Aayush Shukla
Updated on 01-Aug-2023 12:41:41

44 Views

Python is a very commonly used programming language used for many different purposes such as Web Development, Data Science, Machine Learning and to perform many different processes with automation. One of the common processes followed by programmers is to make changes in the data of the list or add some more data into already existing list. In this article we will learn how to repeat and multiply list extension. Repeating Elements In this method the data in the list is extended by repeating the same previous data present in the list. The different methods to repeat the data in ... Read More

How to Read any Request Header in PHP

Pradeep Kumar
Updated on 01-Aug-2023 12:36:05

5K+ Views

PHP (Hypertext Preprocessor): PHP (Hypertext Preprocessor) is a widely-used open-source server-side scripting language that is specifically designed for web development. It was originally created by Rasmus Lerdorf in 1994 and has since evolved into a powerful language used by millions of developers worldwide. PHP is primarily used to develop dynamic web pages and web applications. It allows developers to embed PHP code within HTML, making it easy to mix server-side logic with the presentation layer. PHP scripts are executed on the server, and the resulting HTML is sent to the client's browser. How to Read any Request Header ... Read More

Python - Removing unwanted characters from string

Aayush Shukla
Updated on 01-Aug-2023 12:27:04

131 Views

Python is a very commonly used program used for different purposes like Web Development, Data Science, Machine learning and also to perform different processes with automation. While working on any field of application we have to work on one common thing called string. So in this article we are going to learn how to remove unwanted characters from string. Replacement In this method we simply specify the unwanted element and then that element is removed and an empty place is present in the string. We can understand it in a more better way through the following example Example def unwanted_string_words(data, ... Read More

Python - Removing Duplicate Dicts in List

Aayush Shukla
Updated on 01-Aug-2023 12:20:22

430 Views

Python is a very widely used platform for the purpose of web development, Data Science, Machine Learning and also to perform different processes with automation. We can store our data in python in different data types such as List, Dictionary, Data Sets. The data and information in python dictionary can be edited and changed as per our choice The below article will provide information on different methods to remove duplicate dictionaries in a list. The option of directly selecting the duplicate dictionaries is not available and thus we will have to use different methods and features of python to remove ... Read More

Python - Removing Dictionary from list of Dictionaries

Aayush Shukla
Updated on 01-Aug-2023 12:16:16

156 Views

Dictionary is a very commonly used feature of python which is used to store data within it as per user need. Another typical procedure involves editing or manipulating this data. To become a productive and quick programmer, you have to figure out how to get rid of a dictionary from a list of dictionaries. There are many techniques for removing a dictionary from the list of dictionaries, which are going to be covered in this article. Different Methods to Remove Dictionary from List of Dictionaries Loop Method We will specify the dictionary which is to be removed from the list ... Read More

Python - Remove Sublists that are Present in Another Sublist

Aayush Shukla
Updated on 01-Aug-2023 18:16:58

102 Views

Python is widely used software which has many different purposes of use and a huge variety of feature to perform different tasks. One such useful feature of python is the list feature which help to collect and store different data but many−a−times the user face an issue in removing the sublists which are already present in another sublist. So, in this article we are going to learn how to remove the different sublist that are already present in other sublist. To understand the problem clearly let’s take an example where we have to remove the sublists whose data already exists ... Read More

How to validate IFSC Code using Regular Expression?

Sakshi Koshta
Updated on 01-Aug-2023 19:48:16

1K+ Views

Indian Financial System Code is the abbreviation. Indian bank branches that take part in the electronic fund transfer system are identified by a special 11-character code. The Reserve Bank of India uses this code to transfer money between banks during internet transactions. There are two sections to the IFSC code. The bank is identified by the first four characters, whereas the branch is identified by the final six characters. NEFT (National Electronic Funds Transfer), RTGS (Real Time Gross Settlement), and IMPS (Immediate Payment Service) are just a few of the electronic transactions that require IFSC codes. Method Some general methods ... Read More

Print all the non-repeating words from the two given sentences

Sakshi Koshta
Updated on 01-Aug-2023 19:45:56

188 Views

In this tutorial, we will identify and print all non-repeating words from two given sentences. Non-repeating words refer to words that appear only once in both sentences, means they do not repeat in other sentence. The task involves analysis of the input sentences, identification of the individual words, and comparing them across both sentences to find which ones appear only once. The output should be a list of all such words. This task can be accomplished through various programming approaches, such as using loops, arrays, or dictionaries. Methods Here are the two methods to print all the non-repeating words from ... Read More

Permutation of a string with maximum number of characters greater than its adjacent characters

Sakshi Koshta
Updated on 01-Aug-2023 19:43:18

179 Views

It is crucial to manipulate strings in various problem-solving scenarios. Discovering a permutation of the given string that optimizes the count of characters larger than their contiguous counterparts presents an enjoyable puzzle, requiring rearranging the string's characters to generate as many pairs as possible of adjacent characters where the left character is lesser than the right. Methods There are several methods to solve permutations of a string where maximum number of characters is more than characters immediately adjacent to them. Method 1 − Backtracking with Pruning − Method 2 − Dynamic Programming− Method 3 − Heap's Algorithm− Method 4 ... Read More

How to Unzip a list of Python Tuples

Aayush Shukla
Updated on 01-Aug-2023 11:59:49

198 Views

Python is a programming language used world wide for different purposes such as web development, data science, machine learning and to perform many different processes with automation. Tuple is a very useful feature of python which helps to stores data from multiple data sets like dictionary, list etc. together on one level. In this article we learn about the different methods that can be used to unzip a list of python tuples. Different Methods to Unzip a List of Python Tuples List Comprehension List comprehension is used to check over each element present in the list one by one. In ... Read More

Advertisements