Python - Hard Articles
Prerequisite: Arcade library Arcade is a modern framework, which is used to make 2D video games. In this, article, you will learn how to show… Read More
Given a list of tuples, extract all tuples having K digit elements. Input : test_list = [(54, 2), (34, 55), (222, 23), (12, 45), (78,… Read More
Given a List extract both next and previous element for each element. Input : test_list = [3, 7, 9, 3] Output : [(None, 7), (3, 9),… Read More
Classification is a typical supervised learning task. We use it in those cases where we have to predict a categorical type, that is if a… Read More
Prerequisite: Python Turtle module Basics  We all must have seen the spiderweb at our homes but have you ever wonder how many efforts and patience… Read More
Drawing a tree isn’t a tough task in Python using the turtle module. But, what if you can draw it using Arcade Module as well.… Read More
Prerequisite: Turtle Programming in Python “Turtle” is a Python feature like a drawing board, which lets us command a turtle to draw all over it.… Read More
Given a String, convert it to Matrix, having K characters in each row. Input : test_str = ‘GeeksforGeeks is best’, K = 7 Output : [[‘G’,… Read More
A Stacked Percentage Bar Chart is a simple bar chart in the stacked form with a percentage of each subgroup in a group. Stacked bar… Read More
Prerequisite: Turtle Programming in Python In this article, let’s learn how to draw the Sun using turtle in Python. Turtle is an inbuilt module in… Read More
Prerequisite: Turtle module, Drawing Triangle, Drawing Rectangle There are many modules in python which depicts graphical illustrations, one of them is turtle, it is an… Read More
Before starting with the program, let’s see the basics of Polar Coordinates and then use Python’s cmath and abs module to convert it. Polar coordinates… Read More
Given a snake case string, convert to camel case. Input : test_str = ‘geeksforgeeks_is_best_for_geeks’ Output : geeksforgeeksIsBestForGeeks Explanation : String converted to Camel Case. Input : test_str… Read More
Not everybody must have witnessed Snowfall personally but wait a minute, What if you can see the snowfall right on your screen by just a… Read More
Creating custom data types can be tricky, especially when you want to use it like any other data type. Linked List can be thought of… Read More
In Python programming, Polymorphism is a concept of Object-Oriented Programming in Python. It enables using a single interface with the input of different data types,… Read More
With the help of scipy.fft.dct() method, we can compute the discrete cosine transform by selecting different types of sequences and return the transformed array by… Read More
In this article we will see how we can release the resources of player of PYGLET module in python. Pyglet is easy to use but… Read More
In this article we will see how we can open a file using file location object in PYGLET module in python. Pyglet is easy to… Read More
Prerequisite: Dictionaries in PythonThese question sets will make you conversant with Dictionary Concepts in Python programming language.   Question 1: Which of the following is… Read More