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
Complete DevOps Roadmap - Beginner to Advanced
DevOps is considered a set of practices that combines the abilities of Software Development i.e Dev and IT Operations i.e Ops together, which results in delivering top-not...
Read More
Python program to get the indices of each element of one list in another list
Given 2 lists, get all the indices of all occurrence of each element in list2 from list1.Input : test_list = [4, 5, 3, 7, 8, 3, 2, 4, 3, 5, 8, 3], get_list = [7, 5, 4]Outp...
Read More
Python
Python Programs
Python list-programs
Star fractal printing using Turtle in Python
Prerequisite: Turtle Programming BasicsFractals are objects that tend to have self-similar structures repeated a finite number of times. The objective of this article is t...
Read More
Python
Python Programs
How to Filter rows using Pandas Chaining?
In this article, we will learn how to filter rows using Pandas chaining. For this first we have to look into some previous terms which are given below :Pandas DataFrame: I...
Read More
Python
Python-pandas
Python pandas-dataFrame
Python Pandas-exercise
Python program to compute arithmetic operation from String
Given a String with the multiplication of elements, convert to the summation of these multiplications.Input : test_str = '5x10, 9x10, 7x8'Output : 196Explanation : 50 + 90...
Read More
Python
Python Programs
Python string-programs
Python program for sum of consecutive numbers with overlapping in lists
Given a List, perform summation of consecutive elements, by overlapping.Input : test_list = [4, 7, 3, 2]Output : [11, 10, 5, 6]Explanation : 4 + 7 = 11, 7 + 3 = 10, 3 + 2 ...
Read More
Python
Python Programs
Python list-programs
Python program to concatenate Strings around K
Given List of Strings, join all the strings which occurs around string K.Input : test_list = ["Gfg", "*", "is", "best", "*", "love", "gfg"], K = "*"Output : ['Gfg*is', 'be...
Read More
Python
Python Programs
Python list-programs
Python string-programs
Python program to extract dictionary items for custom values
Given a dictionary, extract all the items that match given values in the listExample:Input : test_dict = {"Gfg" : 3, "is" : 5, "for" : 8, "Geeks" : 10, "Best" : 16 }, sub_...
Read More
Python
Python Programs
Python dictionary-programs
Spatial Segregation in Social Networks
Prerequisite - Introduction to Social NetworksSegregation refers to the act of separation of people from others or the main group.Spatial Segregation refers to the distrib...
Read More
Python
python-utility
Python-Networking
Python program to extract key-value pairs with substring in a dictionary
Given a dictionary list, extract all the dictionaries which have substring present in particular key.Input : [{"Gfg" : "4", "best" : "1"}, {"Gfg" : "good CS content", "bes...
Read More
Python
Python Programs
Python dictionary-programs
Python - Convert Snake Case String to Camel Case
Given a snake case string, convert to camel case.Input : test_str = 'geeksforgeeks_is_best_for_geeks'Output : geeksforgeeksIsBestForGeeksExplanation : String converted to ...
Read More
Python
Python Programs
Python string-programs
Python - Custom Consecutive character repetition in String
Given a String, repeat characters consecutively by number mapped in dictionary.Input : test_str = 'Geeks4Geeks', test_dict = {"G" : 3, "e" : 1, "4" : 3, "k" : 5, "s" : 3}O...
Read More
Python
Python Programs
Python string-programs
Python program to reverse alternate characters in a string
Given a String, reverse its alternate characters string.Input : test_str = 'geeks4rgeeks'Output : keekr4sgeegsExplanation : only g, e, s, r, e, k are reversed, rest all ha...
Read More
Python
Python Programs
Python string-programs
Python program to find the string weight
Given a String, each character mapped with a weight( number), compute the total weight of the string.Input : test_str = 'GeeksforGeeks', {"G" : 1, "e" : 2, "k" :...
Read More
Python
Python Programs
Python string-programs
Python program to find the sum of the value in the dictionary where the key represents the frequency
Given a dictionary with a values list, where the key represents frequency, compute the total occurrence of each value in values lists.Input : test_dict = {70 : [7, 4, 6], ...
Read More
Python
Python Programs
Python dictionary-programs
How to Load a Massive File as small chunks in Pandas?
Pandas in flexible and easy to use open-source data analysis tool build on top of python which makes importing and visualizing data of different formats like .csv, .tsv, ....
Read More
Python
Python-pandas
1
...
6802
6803
6804
...
10993