Problem Statement A positive integer is called a palindrome if its representation in the decimal system is the same when read from left to right and from right to left. For a…
Use Cases Printing with variables Beautifying the printed statements Both of them Floating Point Numbers Floating point numbers can use format %m.nf where m represents total minimum number of digits a string should…
Description Escape sequences are the sequence of characters that is translated into other characters or a sequence of characters that are difficult to represent directly. All the escape sequences contain…
Strings are used in python for recording text information such as address. Python Strings are basically a sequence, i.e. python keeps track of each and every element of the string…
Problem Statement Rohit dreams he is in a shop with an infinite amount of marbles. He is allowed to select n marbles. There are marbles of k different colors. From…
Problem Statement Little kids, Jack and Evan like playing their favorite game Glass-and-Stone. Today they want to play something new and came across Twitter on their father’s laptop. They saw…
Problem Statement In Byteland they have a very strange monetary system. Each Bytelandian gold coin has an integer number written on it. A coin n can be exchanged in a…
What is Python? Python was released in 1991 by Guido van Rossum. It is an interpreted high level language for general purpose programming. Python features a dynamic type system and automatic…