Python Interview Pack
These are the small coding tasks that interviews ask again and again. Start with the warm-up. Each phase builds on the one before it.
40 questions in 3 phases · Learn first: chapters 8 to 15 of the course
0 of 40 solved
1Warm-up
Short tasks with one idea each. Every question gives you the steps.
- 1Python Program to Play FizzBuzz from 1 to N#190Easy
- 2Python Program to Reverse a String#191Easy
- 3Python Program to Reverse the Digits of a Number#192Easy
- 4Python Program to Find the Factorial of a Number#193Easy
- 5Python Program to Print the Fibonacci Series up to N Terms#194Easy
- 6Python Program to Check If a Number Is an Armstrong Number#195Easy
- 7Python Program to Check If a Number Is a Perfect Number#196Easy
- 8Python Program to Count Uppercase, Lowercase, Digits and Spaces#197Easy
- 9Python Program to Check If Two Words Are Anagrams#198Easy
- 10Python Program to Check If a Sentence Is a Pangram#199Easy
- 11Python Program to Remove Duplicates from a List and Keep the Order#200Easy
- 12Python Program to Count How Many Times a Number Appears in a List#201Easy
- 13Python Program to Count Positive, Negative and Zero Numbers in a List#202Easy
- 14Python Program to Check If a List Is Sorted#203Easy
2Practice
Classic interview tasks on lists and strings. Use the hints if you get stuck.
- 15Python Program to Find the Second Largest Number in a List#204Medium
- 16Python Program to Find the Missing Number from 1 to N#205Medium
- 17Python Program to Find the Numbers That Appear More Than Once#206Medium
- 18Python Program to Find the Most Common Character in a String#207Medium
- 19Python Program to Remove Repeated Characters from a String#208Medium
- 20Python Program to Check If a Sentence Is a Palindrome Ignoring Spaces#209Medium
- 21Python Program to Find the Longest Word in a Sentence#210Medium
- 22Python Program to Count How Often Each Word Appears#211Medium
- 23Python Program to Merge Two Sorted Lists Without sort()#212Medium
- 24Python Program to Rotate a List by K Places#213Medium
- 25Python Program to Find the Items Two Lists Have in Common#214Medium
- 26Python Program to Find Two Numbers That Add Up to a Target#215Medium
- 27Python Program to Compress a String with Letter Counts#216Medium
- 28Python Program to Move All Zeros to the End of a List#217Medium
3Challenge
Harder tasks that mix many ideas. Take your time.
- 29Python Program to Check If Brackets Are Balanced#218Hard
- 30Python Program to Find the First Character That Does Not Repeat#219Hard
- 31Python Program to Group Words That Are Anagrams#220Hard
- 32Python Program to Find the Longest Part Without Repeated Letters#221Hard
- 33Python Program to Find the Largest Sum of a Run of Numbers#222Hard
- 34Python Program to Convert a Number to Roman Numerals#223Hard
- 35Python Program to Convert Roman Numerals to a Number#224Hard
- 36Python Program to Find a Number with Binary Search#225Hard
- 37Python Program to Sort a List with Bubble Sort#226Hard
- 38Python Program to Transpose a Matrix#227Hard
- 39Python Program to Find the Longest Common Start of Words#228Hard
- 40Python Program to Hide a Message with a Caesar Cipher#229Hard