Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Python - Append Missing elements from other List
Given 2 lists, append elements missing from list 1 to list 2.Input : test_list1 = [5, 6, 4, 8, 9, 1], test_list2 = [9, 8, 10]Output : [5, 6, 4, 1, 9, 8, 10]Explanation : 5...
Read More
Python
Python Programs
Python list-programs
Python - Interconvert Horizontal and Vertical String
Given a String, convert to vertical if horizontal and vice-versa.Input : test_str = 'geeksforgeeks'Output : g e e k sExplanation : Horizontal String converted to Vertical....
Read More
Python
Python Programs
Python string-programs
Fabric.js Polyline flipY Property
In this article, we are going to see how to set the vertically flip of a canvas polyline in FabricJS. The canvas polyline means the polyline is movable and can be stretche...
Read More
Web Technologies
JavaScript
Fabric.js
Python - Filter Strings combination of K substrings
Given a Strings list, extract all the strings that are a combination of K substrings.Input : test_list = ["geeks4u", "allbest", "abcdef"], substr_list = ["s4u", "est", "al...
Read More
Python
Python Programs
Python string-programs
Python - Replace Elements greater than K
Given element list, replace all elements greater than K with given replace character.Input : test_list = [3, 4, 7, 5, 6, 7], K = 5, repl_chr = None Output : [3, 4, None, 5...
Read More
Python
Python Programs
Python list-programs
Python - Grouped Consecutive Range Indices of Elements
Given List of elements, for list of tuples, where each represents the continuity of occurrence of each element.Input : test_list = [1, 1, 5, 6, 5, 5]Output : {1: [(0, 1)],...
Read More
Python
Python Programs
Python list-programs
Python - Replace Different characters in String at Once
Given a mapping of characters to be replaced with corresponding values, perform all replacements at one, in one-liner.Input : test_str = 'geeksforgeeks is best', map_dict ...
Read More
Python
Python Programs
Python string-programs
Python - Add space between Numbers and Alphabets in String
In this article, we delve into a practical Python solution to improve text readability by adding spaces between numbers and alphabets in strings by utilizing Python's powe...
Read More
Python
Python Programs
Python string-programs
Python - Remove after substring in String
Given a String, remove all characters after a particular substring.Input : test_str = 'geeksforgeeks is best for geeks', sub_str = "for"Output : geeksforgeeks is best forE...
Read More
Python
Python Programs
Python string-programs
Python - Divide String into Equal K chunks
Given a String perform division into K equal chunks.Input : test_str = 'geeksforgeek', K = 4Output : ['gee', 'ksf', 'org', 'eek']Explanation : 12/4 = 3, length of each str...
Read More
Python
Python Programs
Python string-programs
Python - Convert String List to Key-Value List dictionary
Given a string, convert it to key-value list dictionary, with key as 1st word and rest words as value list.Input : test_list = ["gfg is best for geeks", "CS is best subjec...
Read More
Python
Python Programs
Python string-programs
Python - Split String on all punctuations
Given a String, Split the String on all the punctuations.Input : test_str = 'geeksforgeeks! is-best' Output : ['geeksforgeeks', '!', 'is', '-', 'best'] Explanation : Split...
Read More
Python
Python Programs
Python string-programs
Python - Convert String Truth values to Boolean
In Python, when dealing with data, it is common to work with different types and formats. One common task is converting string representations of truth values into their c...
Read More
Python
Python Programs
Python list-programs
Python string-programs
Python - Mirror Image of String
Given a String, perform its mirror imaging, return "Not Possible" if mirror image not possible using english characters.Input : test_str = 'boid' Output : doib Explanation...
Read More
Python
Python Programs
Python string-programs
Python - Append according to Kth character
Given a String list, append to String i or j value depending on Kth index value.Input : test_list = ["geeksforgeeks", "best", "for", "geeks"], K = 2, N = 'e', i, j = "@@",...
Read More
Python
Python Programs
Python list-programs
Python string-programs
1
...
7410
7411
7412
...
11365