Programming

Python Comparision Operators - Python Basics

Comparison Operators in python are pretty straight forward if you have any sort of background in Mathematics. First we’ll present a table of comparison operators and then work through some examples: Operator Description Exmple == if two values of the operands are equal,then the condition…
ProgrammingPythonPython Basic Tutorial

Python Escape Sequence List and Uses

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 more than one character. They all start with a backslash ‘\’ also called Escape Character.  Escape sequences…
CodeChef's Solutions

Marbles' Solution with Approach - Codechef

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 each color there are also infinitely many marbles. Rohit wants to have at least one…