Python Exercises, Practice Questions and SolutionsReadDiscussCoursesPracticeImprove Article ImproveSave Article SaveLike Article LikePython is a widely used general-purpose high-level language that can be used for many purposes like creating GUI, web Scraping, web development, etc. You might have seen various Python tutorials that explain the concepts in detail but that might not be enough to get hold of this language. The best way to learn is by practicing it more and more.This Python exercise helps you learn Python using sets of detailed programming Questions from basic to advance. It covers questions on core Python concepts as well as applications of Python on various domains. Python List ExercisesPython program to interchange first and last elements in a listPython program to swap two elements in a listPython | Ways to find length of listMaximum of two numbers in PythonMinimum of two numbers in Python>> More Programs on ListPython String ExercisesPython program to check whether the string is Symmetrical or PalindromeReverse words in a given String in PythonWays to remove i’th character from string in PythonFind length of a string in python (4 ways)Python program to print even length words in a string>> More Programs on StringPython Tuple ExercisesPython program to Find the size of a TuplePython – Maximum and Minimum K elements in TuplePython – Sum of tuple elementsPython – Row-wise element Addition in Tuple MatrixCreate a list of tuples from given list having number and its cube in each tuple>> More Programs on TuplePython Dictionary ExercisesPython | Sort Python Dictionaries by Key or ValueHandling missing keys in Python dictionariesPython dictionary with keys having multiple inputsPython program to find the sum of all items in a dictionaryPython program to find the size of a Dictionary>> More Programs on DictionaryPython Set ExercisesFind the size of a Set in PythonIterate over a set in PythonPython – Maximum and Minimum in a SetPython – Remove items from SetPython – Check if two lists have atleast one element common>> More Programs on SetsPython Matrix ExercisesPython – Assigning Subsequent Rows to Matrix first row elementsAdding and Subtracting Matrices in PythonPython – Group similar elements into MatrixPython – Row-wise element Addition in Tuple MatrixCreate an n x n square matrix, where all the sub-matrix have the sum of opposite corner elements as even>> More Programs on MatricesPython Functions ExercisesHow to get list of parameters name from a function in Python?How to Print Multiple Arguments in Python?Python program to find the power of a number using recursionSorting objects of user defined class in PythonFunctions that accept variable length key value pair as arguments>> More Programs on FunctionsPython Lambda ExercisesLambda with if but without else in PythonPython | Sorting string using order defined by another stringPython | Find fibonacci series upto n using lambdaPython program to count Even and Odd numbers in a ListPython | Find the Number Occurring Odd Number of Times using Lambda expression and reduce function>> More Programs on LambdaPython Pattern printing ExercisesProgram to print half Diamond star patternPrograms for printing pyramid patterns in PythonProgram to print the diamond shapePython | Print an Inverted Star PatternPython Program to print digit pattern>> More Programs on Python Pattern PrintingPython DateTime ExercisesPython program to get Current TimeGet Yesterday’s date using PythonPython program to print current year, month and dayPython – Convert day number to date in particular yearGet Current Time in different Timezone using Python>> More Programs on DateTimePython OOPS ExercisesPython program to build flashcard using class in PythonShuffle a deck of card with OOPS in PythonHow to create an empty class in Python?Student management system in Python>> More Programs on Python OOPSPython Regex ExercisesPython program to find the type of IP Address using RegexPython program to find Indices of Overlapping SubstringsPython program to extract Strings between HTML TagsPython – Check if String Contain Only Defined Characters using RegexPython program to find files having a particular extension using RegEx>> More Programs on Python RegexPython LinkedList ExercisesPython program to Search an Element in a Circular Linked ListPretty print Linked List in PythonPython | Stack using Doubly Linked ListPython | Queue using Doubly Linked ListPython program to find middle of a linked list using one traversal>> More Programs on Linked ListsPython Searching ExercisesPython Program for Linear SearchPython Program for Binary Search (Recursive and Iterative)Python Program for Anagram Substring Search (Or Search for all permutations)>> More Programs on Python SearchingPython Sorting ExercisesPython Program for Bubble SortPython Program for QuickSortPython Program for Insertion SortPython Program for Selection SortPython Program for Heap Sort>> More Programs on Python SortingPython DSA ExercisesPython program to reverse a stackMultithreaded Priority Queue in PythonCheck whether the given string is Palindrome using StackProgram to Calculate the Edge Cover of a GraphPython Program for N Queen Problem>> More Programs on Python DSAPython File Handling ExercisesRead content from one file and write it into another fileWrite a dictionary to a file in PythonHow to check file size in Python?Find the most repeated word in a text fileHow to read specific lines from a File in Python?>> More Programs on Python File HandlingPython CSV ExercisesUpdate column value of CSV in PythonHow to add a header to a CSV file in Python?Get column names from CSV using PythonWriting data from a Python List to CSV row-wiseConvert multiple JSON files to CSV Python>> More Programs on Python CSVPython JSON ExercisesConvert class object to JSON in PythonConvert JSON data Into a Custom Python ObjectFlattening JSON objects in PythonConvert CSV to JSON using Python>> More Programs on Python JSONPython OS Module ExercisesHow to get file creation and modification date or time in Python?Menu Driven Python program for opening the required software ApplicationPython Script to change name of a file to its timestampKill a Process by name using PythonFinding the largest file in a directory using Python>> More Programs on OS ModulePython Tkinter ExercisesPython | Create a GUI Marksheet using TkinterPython | ToDo GUI Application using TkinterPython | GUI Calendar using TkinterFile Explorer in Python using TkinterVisiting Card Scanner GUI Application using Python>> More Programs on Python TkinterNumPy ExercisesHow to create an empty and a full NumPy array?Create a Numpy array filled with all zerosCreate a Numpy array filled with all onesReplace NumPy array elements that doesn’t satisfy the given conditionGet the maximum value from given matrix>> More Programs on NumPyPandas ExercisesMake a Pandas DataFrame with two-dimensional list | PythonHow to iterate over rows in Pandas DataframeCreate a pandas column using for loopCreate a Pandas Series from arrayPandas | Basic of Time Series Manipulation>> More Programs on Python PandasPython Web Scraping ExercisesHow to extract youtube data in Python?How to Download All Images from a Web Page in Python?Test the given page is found or not on the server Using PythonHow to Extract Wikipedia Data in Python?How to extract paragraph from a website and save it as a text file?>> More Programs on Web ScrapingPython Selenium ExercisesDownload File in Selenium Using PythonBulk Posting on Facebook Pages using SeleniumGoogle Maps Selenium automation using PythonCount total number of Links In Webpage Using Selenium In PythonExtract Data From JustDial using Selenium>> More Programs on Python SeleniumPython ProjectsNumber guessing game in Python2048 Game in PythonGet Live Weather Desktop Notifications Using Python8-bit game using pygameTic Tac Toe GUI In Python using PyGame>> More Projects in PythonLast Updated : 07 Jan, 2022Like Article Save Article Please Login to comment...