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
Web Scraping using lxml and XPath in Python
Prerequisites: Introduction to Web ScrapingIn this article, we will discuss the lxml python library to scrape data from a webpage, which is built on top of thelibxml2XML p...
Read More
Python Programs
Web-scraping
How to animate an object using Arcade module?
Prerequisite: Arcade LibraryThe world of Programming is very vast, and animation is its key soul. In this, tutorial you will learn how to animate objects in Python using A...
Read More
Python
Python-Arcade
Draw an ellipse using Arcade library in Python
Prerequisite: Arcade LibraryThe Arcade library is a modern Python Module used for developing 2D video games with enthralling graphics and sound. It is an object-oriented l...
Read More
Python
Python-Arcade
Python program to extract the Unique Dictionary Value List elements
Given Dictionary with value lists, extract all unique values.Input : test_dict = {"Gfg" : [6, 7, 4, 6], "Geeks" : [6, 8, 5, 2]}Output : [6, 7, 4, 8, 5, 2]Explanation : All...
Read More
Python
Python Programs
Python dictionary-programs
Python program to update a dictionary with the values from a dictionary list
Given a dictionary and dictionary list, update the dictionary with dictionary list values.Input : test_dict = {"Gfg" : 2, "is" : 1, "Best" : 3}, dict_list = [{'for' : 3, '...
Read More
Python
Python Programs
Python dictionary-programs
Python Program that Extract words starting with Vowel From A list
Given a list with string elements, the following program extracts those elements which start with vowels(a, e, i, o, u).Input : test_list = ["all", "love", "get", "educate...
Read More
Python
Python Programs
Python list-programs
Python string-programs
Python - Nearest K Sort
Given a List of elements, perform sort on basis of its distance from K.Input : test_list = [6, 7, 4, 11, 17, 8, 3], K = 10Output : [11, 8, 7, 6, 4, 17, 3]Explanation : 11-...
Read More
Python
Python Programs
Python list-programs
Python - Remove Tuples with difference greater than K
Given Dual Tuples List, remove pairs with differences greater than K.Input : test_list = [(4, 8), (1, 7), (9, 12), (3, 12), (2, 10)], K = 6Output : [(4, 8), (9, 12), (1, 7...
Read More
Python
Python Programs
Python list-programs
Python - Next N elements from K value
Given a List, get next N values from occurrence of K value in List.Input : test_list = [3, 4, 6, 7, 8, 4, 7, 2, 1, 8, 4, 2, 3, 9], N = 1, K = 4Output : [6, 7, 2]Explanatio...
Read More
Python
Python Programs
Python list-programs
Python - Average of digit greater than K
Given elements list, extract elements whose average of digit is greater than K.Input : test_list = [633, 719, 8382, 119, 327], K = 5Output : [719, 8382]Explanation : (7 + ...
Read More
Python
Python Programs
Python list-programs
Python - Nearest occurrence between two elements in a List
Given a list and two elements, x and y find the nearest occurrence index of element x from element y.Input : test_list = [2, 4, 5, 7, 8, 6, 3, 8, 7, 2, 0, 9, 4, 9, 4], x ...
Read More
Python
Python Programs
Python list-programs
Python - Cross Pattern Pairs in List
Given two lists, pair them diagonally, in cross pattern [works for even and equi-length lists].Input : test_list1 = [4, 5, 6, 2], test_list2 = [9, 1, 4, 7]Output : [(4, 1)...
Read More
Python
Python Programs
Python list-programs
Python - Sort Dictionaries by Size
Given a Dictionary List, perform sort by size of dictionary.Input : test_list = [{4:6, 9:1, 10:2, 2:8}, {4:3, 9:1}, {3:9}, {1:2, 9:3, 7:4}]Output : [{3: 9}, {4: 3, 9: 1}, ...
Read More
Python
Python Programs
Python list-programs
Python dictionary-programs
Python - Extract Monodigit elements
Given List of numbers, extract all numbers with only similar digit.Input : test_list = [463, 888, 123, 'aaa', 112, 111, 'gfg', 939, 4, 'ccc']Output : [888, 'aaa', 111, 4, ...
Read More
Python
Python Programs
Python list-programs
Python - Sort Strings by Maximum ASCII value
Given strings list, perform sort by Maximum Character in String.Input : test_list = ["geeksforgeeks", "is", "best", "cs"]Output : ["geeksforgeeks", "is", "cs", "best"]Expl...
Read More
Python
Python Programs
ASCII
Python string-programs
1
...
6734
6735
6736
...
10982