Skip to content

Latest commit

History

History

README.md

A step by step guide to Python, a language that is easy to pick up yet one of the most powerful.

NamePreviewCodeDifficulty
Say "Hello, World!" With PythonGet started with Python by printing to stdout.PythonEasy
Python If-ElsePractice using if-else conditional statements!PythonEasy
Arithmetic OperatorsAddition, subtraction and multiplication.PythonEasy
Python: DivisionDivision using future module.PythonEasy
LoopsPractice using "for" and "while" loops in Python.PythonEasy
Write a functionWrite a function to check if the given year is leap or notPythonMedium
Print FunctionLearn to use print as a functionPythonEasy
NamePreviewCodeDifficulty
ListsPerform different list operations.PythonEasy
Tuples Learn about tuples and compute hash(T).PythonEasy
List ComprehensionsYou will learn about list comprehensions.PythonEasy
Find the Runner-Up Score! For a given list of numbers, find the second largest number.PythonEasy
Nested ListsIn a classroom of N students, find the student with the second lowest grade.PythonEasy
Finding the percentageStore a list of students and marks in a dictionary, and find the average marks obtained by a student.PythonEasy
NamePreviewCodeDifficulty
sWAP cASESwap the letter cases of a given string.PythonEasy
String Split and JoinUse Python's split and join methods on the input string.PythonEasy
What's Your Name?Python string practice: Print your name in the console.PythonEasy
MutationsUnderstand immutable vs mutable by making changes to a given string.PythonEasy
Find a stringFind the number of occurrences of a substring in a string.PythonEasy
String ValidatorsIdentify the presence of alphanumeric characters, alphabetical characters, digits, lowercase and uppercase characters in a string.PythonEasy
Text AlignmentGenerate the Hackerrank logo with alignments in Python.PythonEasy
Text WrapWrap the given text in a fixed width.PythonEasy
Designer Door MatPrint a designer door mat.PythonEasy
String FormattingPrint the formatted decimal, octal, hexadecimal, and binary values for $n$ integers.PythonEasy
Alphabet RangoliLet's draw rangoli.PythonEasy
Capitalize!Capitalize Each Word.PythonEasy
The Minion GameGiven a string, judge the winner of the minion game.PythonMedium
Merge the Tools!Split a string into subsegments of length $k$, then print each subsegment with any duplicate characters stripped out.PythonMedium
NamePreviewCodeDifficulty
Introduction to SetsUse the set tool to compute the average.PythonEasy
Symmetric DifferenceLearn about sets as a data type.PythonEasy
No Idea!Compute your happiness.PythonMedium
Set .add() Add elements to set.PythonEasy
Set .discard(), .remove() & .pop()Different ways to omit set elements.PythonEasy
Set .union() OperationUse the .union() operator to determine the number of students.PythonEasy
Set .intersection() OperationUse the .intersection() operator to determine the number of same students in both sets.PythonEasy
Set .difference() OperationUse the .difference() operator to check the differences between sets.PythonEasy
Set .symmetric_difference() OperationMaking symmetric difference of sets.PythonEasy
Set MutationsUsing various operations, change the content of a set and output the new sum.PythonEasy
The Captain's Room Out of a list of room numbers, determine the number of the captain's room.PythonEasy
Check SubsetVerify if set A is a subset of set B.PythonEasy
Check Strict SupersetCheck if A is a strict superset of the other given sets.PythonEasy
NamePreviewCodeDifficulty
Polar CoordinatesConvert complex numbers to polar coordinatesPythonEasy
Find Angle MBCFind the desired angle in the right triangle.PythonMedium
Triangle Quest 2Create a palindromic triangle.PythonMedium
Mod DivmodGet the quotient and remainder using the divmod operator in Python.PythonEasy
Power - Mod PowerPerform modular exponentiation in Python.PythonEasy
Integers Come In All SizesExercises with big integers in Python.PythonEasy
Triangle QuestPrint a numeric triangle of height N-1 using only 2 lines.PythonMedium
NamePreviewCodeDifficulty
itertools.product()Find the cartesian product of 2 sets.PythonEasy
itertools.permutations()Find all permutations of a given size in a given string.PythonEasy
itertools.combinations()Print all the combinations of a string using itertools.PythonEasy
itertools.combinations_with_replacement()Find all the combinations of a string with replacements.PythonEasy
Compress the String! groupby()PythonMedium
Iterables and IteratorsFind the probability using itertools.PythonMedium
Maximize It!Find the maximum possible value out of the equation provided.PythonHard
NamePreviewCodeDifficulty
collections.Counter()Use a counter to sum the amount of money earned by the shoe shop owner.PythonEasy
DefaultDict TutorialCreate dictionary value fields with predefined data types.PythonEasy
Collections.namedtuple()You need to turn tuples into convenient containers using collections.namedtuple().PythonEasy
Collections.OrderedDict()Print a dictionary of items that retains its order.PythonEasy
Word OrderList the number of occurrences of the words in order.PythonMedium
Collections.deque()Perform multiple operations on a double-ended queue or deque.PythonEasy
Piling Up!Create a vertical pile of cubes.PythonMedium
Company LogoPrint the number of character occurrences in descending order.PythonMedium
NamePreviewCodeDifficulty
Calendar ModulePrint the day of a given date.PythonEasy
Time DeltaFind the absolute time difference.PythonMedium
NamePreviewCodeDifficulty
ExceptionsHandle errors detected during execution.PythonEasy
Incorrect RegexCheck whether the regex is valid or not.PythonEasy
NamePreviewCodeDifficulty
Classes: Dealing with Complex NumbersCreate a new data type for complex numbers.PythonMedium
Class 2 - Find the Torsional AngleFind the angle between two planes.PythonEasy
NamePreviewCodeDifficulty
Zipped!Compute the average by zipping data.PythonEasy
Input()A Python 2 challenge: Input() is equivalent to eval(raw_input(prompt)).PythonEasy
Python EvaluationEvaluate the expressions in Python using the expression eval().PythonEasy
Athlete SortSort the table on the kth attribute.PythonMedium
Any or AllReturn True, if any of the iterable is true or if all of it is true using the any() and all() expressions.PythonEasy
ginortSAn uneasy sort.PythonMedium
NamePreviewCodeDifficulty
Map and Lambda FunctionThis challenge covers the basic concept of maps and lambda expressions.PythonEasy
Validating Email Addresses With a Filter This question covers the concept of filters.PythonMedium
Reduce FunctionPython PracticePythonMedium
NamePreviewCodeDifficulty
Detect Floating Point NumberValidate a floating point number using the regular expression module for Python.PythonEasy
Re.split()Split the string by the pattern occurrence using the re.split() expression.PythonEasy
Group(), Groups() & Groupdict()Using group(), groups(), and groupdict(), find the subgroup(s) of the match.PythonEasy
Re.findall() & Re.finditer()Find all the pattern matches using the expressions re.findall() and re.finditer().PythonEasy
Re.start() & Re.end()Find the indices of the start and end of the substring matched by the group.PythonEasy
Regex SubstitutionSubstitute a string using regex tools.PythonMedium
Validating Roman NumeralsUse regex to validate Roman numerals.PythonEasy
Validating phone numbersCheck whether the given phone number is valid or not.PythonEasy
Validating and Parsing Email AddressesPrint valid email addresses according to the constraints.PythonEasy
Hex Color CodeValidate Hex color codes in CSS.PythonEasy
HTML Parser - Part 1Parse HTML tags, attributes and attribute values using HTML Parser.PythonEasy
HTML Parser - Part 2Parse HTML comments and data using HTML Parser.PythonEasy
Detect HTML Tags, Attributes and Attribute ValuesParse HTML tags, attributes and attribute values in this challenge.PythonEasy
Validating UID Validate all the randomly generated user identification numbers according to the constraints.PythonEasy
Validating Credit Card NumbersVerify whether credit card numbers are valid or not.PythonMedium
Validating Postal CodesVerify if the postal code is valid or invalid.PythonHard
Matrix ScriptDecode the Matrix.PythonHard
NamePreviewCodeDifficulty
XML 1 - Find the ScoreLearn about XML parsing in Python.PythonEasy
XML2 - Find the Maximum DepthFind the maximum depth in an XML document.PythonEasy
NamePreviewCodeDifficulty
Standardize Mobile Number Using DecoratorsUse decorators to standardize mobile numbers.PythonEasy
Decorators 2 - Name DirectoryUse decorators to build a name directory.PythonEasy
NamePreviewCodeDifficulty
ArraysConvert a list to an array using the NumPy package.PythonEasy
Shape and ReshapeUsing the shape and reshape tools available in the NumPy module, configure a list according to the guidelines.PythonEasy
Transpose and FlattenUse the transpose and flatten tools in the NumPy module to manipulate an array.PythonEasy
ConcatenateUse the concatenate function on 2 arrays.PythonEasy
Zeros and OnesPrint an array using the zeros and ones tools in the NumPy module.PythonEasy
Eye and IdentityCreate an array using the identity or eye tools from the NumPy module.PythonEasy
Array MathematicsPerform basic mathematical operations on arrays in NumPy.PythonEasy
Floor, Ceil and RintUse the floor, ceil and rint tools of NumPy on the given array.PythonEasy
Sum and ProdPerform the sum and prod functions of NumPy on the given 2-D array.PythonEasy
Min and MaxUse the min and max tools of NumPy on the given 2-D array.PythonEasy
Mean, Var, and StdUse the mean, var and std tools in NumPy on the given 2-D array.PythonEasy
Dot and CrossUse NumPy to find the dot and cross products of arrays.PythonEasy
Inner and OuterUse NumPy to find the inner and outer product of arrays.PythonEasy
PolynomialsGiven the coefficients, use polynomials in NumPy.PythonEasy
Linear AlgebraNumPy routines for linear algebra calculations.PythonEasy
NamePreviewCodeDifficulty
Words ScoreCalculate the total score of the list of words.PythonMedium
Default ArgumentsDebug a function which uses a default value for one of its arguments.PythonMedium