Python - Easy Articles
The job is simple. We need to take a list, with duplicate elements in it and generate another list that only contains the element without… Read More
Given two strings, print all the common characters in lexicographical order. If there are no common letters, print -1. All letters are lower case.  Examples:… Read More
Python String isdigit() method returns “True” if all characters in the string are digits, Otherwise, It returns “False”.  Python String isdigit() Method Syntax Syntax: string.isdigit()… Read More
Given a string of size n, write functions to perform following operations on string. Left (Or anticlockwise) rotate the given string by d elements (where… Read More
Python ord() function returns the Unicode code from a given character. This function accepts a string of unit length as an argument and returns the… Read More
Faker is a Python package that generates fake data for you. Installation: Help Link Open Anaconda prompt command to install: conda install -c conda-forge faker… Read More
Python String isprintable() is a built-in method used for string handling. The isprintable() method returns “True” if all characters in the string are printable or… Read More
Python String isalpha() method is used to check whether all characters in the String are an alphabet. Python String isalpha() Method SyntaxSyntax:  string.isalpha() Parameters: isalpha()… Read More
Given a string str that may contain one more occurrences of “AB”. Replace all occurrences of “AB” with “C” in str. Examples: Input : str… Read More
Escape characters are characters that are generally used to perform certain tasks and their usage in code directs the compiler to take a suitable action… Read More
Python String index() Method allows a user to find the index of the first occurrence of an existing substring inside a given string in Python.… Read More
In this article, we are going to see delattr() and del() functions in Python delattr() in Python The delattr() method is used to delete the… Read More
This article focus on how to replace document or entry inside a collection. We can only replace the data already inserted in the database. Prerequisites… Read More
Given a string “str” and another string “sub_str”. We are allowed to delete “sub_str” from “str” any number of times. It is also given that… Read More
In this article, we will see how to check if an object is callable in Python. In general, a callable is something that can be… Read More
Given two strings in lowercase, the task is to make them Anagram. The only allowed operation is to remove a character from any string. Find… Read More
In recent years, Artificial Intelligence has seen exponential growth and innovation in the field of technology. As the demand for Artificial intelligence among companies and… Read More
Introduction Spirograph toy that is used to produce complex patterns using plastic cogs and colored pens. A fractal is a curve, that is developed using… Read More
Given a list of strings and a prefix value sub-string, find all strings from given list of strings which contains given value as prefix ?… Read More
Given a string and a number k, find the k-th non-repeating character in the string. Consider a large input string with lacs of characters and… Read More