Found 26504 Articles for Server Side Programming

Python - Repeat String till K

Aayush Shukla
Updated on 01-Aug-2023 12:46:39

150 Views

Python is used all over the world by different people for different purposes such as web development, machine learning, data science and to perform different processes with automation. In this article we will learn how to increase the length of a string by repeating the same string again and again until we achieve our required length. Different Methods to Repeat Strings String Multiplication In this method we simply achieve the desired length by multiplication operation. We will provide a specific value and the string will be multiplied to reach the specific number of characters. The syntax of this method is ... Read More

Python - Repeat and Multiply List Extension

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

132 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

10K+ 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

223 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

1K+ 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

416 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

209 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

2K+ 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

360 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

398 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

Advertisements