Python - Easy Articles
Prerequisite – Creating child process in Python As there are many processes running simultaneously on the computer so it is very necessary to have proper… Read More
The problem is quite simple. Given a string, we need to replace all commas with dots and all dots with the commas. This can be… Read More
In Python programming, determining whether a list is empty holds importance for effective data handling. This article delves into concise techniques for checking the emptiness… Read More
Given n, print the  checkerboard pattern for a n x n matrix  Checkerboard Pattern for n = 8: It consists of n * n squares… Read More
Given an integer array, print all distinct elements in array. The given array may contain duplicates and the output should print every element only once.… Read More
Python memoryview() function returns the memory views objects. Before learning more about memoryview() function let’s see why do we use this function. Why do we… Read More
Given a string, check if the given string is a pangram or not. Examples:  Input : The quick brown fox jumps over the lazy dog… Read More
Prerequisite: Loops Note: Output of all these programs is tested on Python3 1. What is the output of the following? mylist = ['geeks', 'forgeeks'] for… Read More
We are given a sentence in the English language(which can also contain digits), and we need to compute and print the sum of ASCII values… Read More
Given two strings ‘X’ and ‘Y’, print the longest common sub-string. Examples: Input : X = "GeeksforGeeks", Y = "GeeksQuiz" Output : Geeks Input :… Read More
Given a name, print the initials of a name(uppercase) with last name(with first alphabet in uppercase) written in full separated by dots.  Examples: Input :… Read More
Given an positive integer and size of bits, reverse all bits of it and return the number with reversed bits.Examples: Input : n = 1,… Read More
Python provides us with various ways of reversing a list. We will go through some of the many techniques on how a list in Python… Read More
Given an array of names of candidates in an election. A candidate name in the array represents a vote cast to the candidate. Print the… Read More
You are given a string and a word your task is that count the number of occurrences of the given word in the string and… Read More
A 3-D List means that we need to make a list that has three parameters to it, i.e., (a x b x c), just like… Read More
Given a string of lowercase characters only, the task is to check if it is possible to split a string from middle which will gives… Read More
Two strings are given and you have to modify the 1st string such that all the common characters of the 2nd string have to be… Read More
A string contains patterns of the form 1(0+)1 where (0+) represents any non-empty consecutive sequence of 0’s. Count all such patterns. The patterns are allowed… Read More
Since, unlike other programming languages, Python does not have arrays, instead, it has list. Using lists is more easy and comfortable to work with in… Read More