๐Ÿ 100 Python Programming Problems

Master Python through hands-on problem solving

๐Ÿงฎ
Beginner (1-30)
Focus on Basic Logic, Loops, and Conditions
๐Ÿ”ข
Even or Odd Checker
Write a program to determine if a given number is even or odd
๐Ÿ†
Maximum of Three
Compare three numbers and find the largest one
๐Ÿ”
Minimum of Three
Compare three numbers and find the smallest one
โš–๏ธ
Number Sign Checker
Determine if a number is positive, negative, or zero
โœ–๏ธ
Multiplication Table
Generate and display multiplication table for any number
๐ŸŽฏ
Even Number Generator
Print all even numbers from 1 to N
๐ŸŽฒ
Odd Number Generator
Print all odd numbers from 1 to N
๐Ÿ”บ
Factorial Calculator
Calculate factorial of a number (n! = n ร— (n-1) ร— ... ร— 1)
โž•
Sum of Digits
Add all individual digits of a number together
๐Ÿ”„
Number Reverser
Reverse the digits of a given number (123 becomes 321)
๐Ÿ”
Number Palindrome
Check if a number reads the same forwards and backwards
๐Ÿ“
String Palindrome
Check if a string reads the same forwards and backwards
๐Ÿ”ค
Vowel Counter
Count the number of vowels (a, e, i, o, u) in a string
๐Ÿ“Š
Word Counter
Count the total number of words in a sentence
๐ŸŒ€
Fibonacci Generator
Generate Fibonacci sequence up to N terms (0, 1, 1, 2, 3, 5...)
๐Ÿ”—
GCD Calculator
Find the Greatest Common Divisor of two numbers
๐Ÿ”ข
LCM Calculator
Find the Least Common Multiple of two numbers
๐Ÿ“…
Leap Year Checker
Determine if a given year is a leap year or not
๐Ÿ“ˆ
List Maximum
Find the largest element in a list of numbers
๐Ÿ“‰
List Minimum
Find the smallest element in a list of numbers
๐Ÿฅˆ
Second Largest
Find the second largest number in a list
๐ŸŽฏ
Even Index Elements
Print elements at even positions (0, 2, 4, ...) in a list
๐ŸŽฒ
Odd Index Elements
Print elements at odd positions (1, 3, 5, ...) in a list
๐Ÿงฎ
List Sum
Calculate the sum of all elements in a list
๐Ÿ”„
Remove Duplicates
Remove duplicate elements from a list keeping unique values
๐Ÿ“Š
Element Frequency
Count how many times each element appears in a list
๐Ÿ”ข
Even/Odd Counter
Count how many even and odd numbers are in a list
โฌ›
Square Calculator
Calculate the square of each element in a list
๐Ÿ”„
Replace Negatives
Replace all negative numbers in a list with zero
๐Ÿ”ค
String Uppercase
Convert all string elements in a list to uppercase
๐Ÿ› ๏ธ
Intermediate (31-70)
Logic Patterns, Strings, Functions
๐Ÿ”—
Common Elements
Find elements that exist in both lists
โž–
List Difference
Find elements that are in one list but not the other
โญ
Star Triangle
Print a triangle pattern using asterisks (*)
๐Ÿ”ป
Reverse Triangle
Print an inverted triangle pattern
๐Ÿ”บ
Number Pyramid
Create a pyramid pattern using numbers
๐Ÿ”
Prime Checker
Check if a number has exactly two divisors
๐Ÿ“‹
Prime List
Generate all prime numbers between 1 and 100
๐Ÿ”ค
ASCII Values
Display ASCII code for each character in a string
๐Ÿงน
Special Char Remover
Remove all non-alphabetic characters from text
๐Ÿ“Š
Case Counter
Count uppercase and lowercase letters separately
๐Ÿ”ค
Title Case
Capitalize first letter of each word in a sentence
๐Ÿ”„
Space Replacer
Replace all spaces with underscores in text
โœ‚๏ธ
Substring Generator
Find all possible substrings of a given string
๐Ÿ”
Substring Counter
Count occurrences of a substring in main string
๐Ÿ”ค
Anagram Checker
Check if two strings contain same letters rearranged
๐Ÿ“ˆ
Duplicate Counter
Count characters that appear more than once
๐Ÿ†•
First Non-Repeating
Find first character that appears only once
๐Ÿ”
First Repeating
Find first character that appears more than once
๐Ÿ”ข
Decimal to Binary
Convert decimal number to binary representation
๐Ÿ”ข
Binary to Decimal
Convert binary number to decimal representation
๐ŸŒก๏ธ
Temperature Converter
Convert temperature from Celsius to Fahrenheit
๐ŸŽฒ
Random Generator
Generate a list of N random numbers
๐Ÿ“
Formula Sum
Sum 1 to N using mathematical formula (N*(N+1)/2)
โšก
Power Calculator
Calculate power without using ** operator
๐Ÿงฎ
Calculator Functions
Create add, subtract, multiply, divide functions
๐Ÿ’ฐ
Compound Interest
Calculate compound interest for investments
๐Ÿ”„
List Rotator
Shift all elements in list one position to the right
๐Ÿ“Š
Sort Checker
Check if a list is already sorted in ascending order
๐Ÿ”—
List Merger
Merge two sorted lists into one sorted list
โ“
Missing Number
Find which number is missing from 1 to N sequence
๐Ÿ”
Duplicate Finder
Find all numbers that appear more than once
โž•
Sum Pairs
Count pairs of numbers that add up to target sum
๐Ÿ”
Binary Search
Implement efficient search algorithm for sorted lists
๐Ÿšซ
Zero Remover
Remove all zero values from a list
๐Ÿ“ฆ
List Flattener
Convert nested list into single flat list
๐Ÿ“ˆ
Max Character
Find character that appears most frequently
๐Ÿšซ
Vowel Remover
Remove all vowels from a string
โฌ›
Checkerboard Pattern
Create alternating pattern like a checkerboard
๐Ÿ”„
Variable Swapper
Swap two variables without using a third variable
๐Ÿ”ข
Digit Extractor
Extract and print only numeric digits from a string
๐Ÿ”ด
Advanced (71-100)
Recursion, Algorithms, Mini-Projects
๐Ÿ”
Recursive Factorial
Calculate factorial using recursive function calls
๐ŸŒ€
Recursive Fibonacci
Generate Fibonacci numbers using recursion
๐Ÿ—ผ
Tower of Hanoi
Solve classic Tower of Hanoi puzzle for 3 disks
๐Ÿ”บ
Pascal's Triangle
Generate Pascal's Triangle with binomial coefficients
๐Ÿ”„
String Permutations
Find all possible arrangements of string characters
๐Ÿ”ข
Bubble Sort
Sort array by repeatedly swapping adjacent elements
๐Ÿ“ฅ
Insertion Sort
Sort by inserting each element in correct position
๐ŸŽฏ
Selection Sort
Sort by selecting minimum element in each iteration
๐Ÿ“
Longest Word
Find the longest word in a given sentence
๐Ÿง
Mini ATM System
Create ATM with deposit, withdraw, and balance features
๐ŸŽฒ
Dice Simulator
Simulate rolling a six-sided dice
๐Ÿง 
Coin Toss
Simulate flipping a coin (heads or tails)
๐Ÿ”
Password Generator
Generate random password of specified length
๐Ÿ“ง
Email Validator
Check if email address has valid format
๐Ÿ”’
Password Validator
Check password strength (length, symbols, uppercase, numbers)
๐ŸŽฏ
Number Guessing Game
Create game where user guesses random number
๐ŸŽช
Hangman Game
Create classic word guessing game
๐Ÿ”ค
Number to Words
Convert digits to word form (123 โ†’ "one two three")
๐Ÿ“Š
Character Counter
Count digits, letters, and symbols separately
๐Ÿ’ช
Armstrong Number
Check if number equals sum of cubes of its digits
๐Ÿ“‹
Armstrong Range
Find all Armstrong numbers in given range
๐Ÿ”ข
Random OTP
Generate random One-Time Password
๐Ÿ›๏ธ
Caesar Cipher
Implement classic encryption by shifting letters
1๏ธโƒฃ
Set Bits Counter
Count number of 1s in binary representation
0๏ธโƒฃ
Trailing Zeroes
Count trailing zeros in factorial of number
3๏ธโƒฃ
Zero Sum Triplets
Find all unique triplets that sum to zero
๐Ÿ“ˆ
Longest Increasing
Find longest increasing subsequence in list
๐ŸŒ€
Spiral Matrix
Print matrix elements in spiral order
๐Ÿ”„
Matrix Transpose
Convert rows to columns and vice versa
๐Ÿ”„
Reverse Words
Reverse word order but keep character order intact
๐Ÿงฎ
Beginner (1-30)
Focus on Basic Logic, Loops, and Conditions
๐Ÿ”ข
Even or Odd Checker
Write a program to determine if a given number is even or odd
๐Ÿ†
Maximum of Three
Compare three numbers and find the largest one
๐Ÿ”
Minimum of Three
Compare three numbers and find the smallest one
โš–๏ธ
Number Sign Checker
Determine if a number is positive, negative, or zero
โœ–๏ธ
Multiplication Table
Generate and display multiplication table for any number
๐ŸŽฏ
Even Number Generator
Print all even numbers from 1 to N
๐ŸŽฒ
Odd Number Generator
Print all odd numbers from 1 to N
๐Ÿ”บ
Factorial Calculator
Calculate factorial of a number (n! = n ร— (n-1) ร— ... ร— 1)
โž•
Sum of Digits
Add all individual digits of a number together
๐Ÿ”„
Number Reverser
Reverse the digits of a given number (123 becomes 321)
๐Ÿ”
Number Palindrome
Check if a number reads the same forwards and backwards
๐Ÿ“
String Palindrome
Check if a string reads the same forwards and backwards
๐Ÿ”ค
Vowel Counter
Count the number of vowels (a, e, i, o, u) in a string
๐Ÿ“Š
Word Counter
Count the total number of words in a sentence
๐ŸŒ€
Fibonacci Generator
Generate Fibonacci sequence up to N terms (0, 1, 1, 2, 3, 5...)
๐Ÿ”—
GCD Calculator
Find the Greatest Common Divisor of two numbers
๐Ÿ”ข
LCM Calculator
Find the Least Common Multiple of two numbers
๐Ÿ“…
Leap Year Checker
Determine if a given year is a leap year or not
๐Ÿ“ˆ
List Maximum
Find the largest element in a list of numbers
๐Ÿ“‰
List Minimum
Find the smallest element in a list of numbers
๐Ÿฅˆ
Second Largest
Find the second largest number in a list
๐ŸŽฏ
Even Index Elements
Print elements at even positions (0, 2, 4, ...) in a list
๐ŸŽฒ
Odd Index Elements
Print elements at odd positions (1, 3, 5, ...) in a list
๐Ÿงฎ
List Sum
Calculate the sum of all elements in a list
๐Ÿ”„
Remove Duplicates
Remove duplicate elements from a list keeping unique values
๐Ÿ“Š
Element Frequency
Count how many times each element appears in a list
๐Ÿ”ข
Even/Odd Counter
Count how many even and odd numbers are in a list
โฌ›
Square Calculator
Calculate the square of each element in a list
๐Ÿ”„
Replace Negatives
Replace all negative numbers in a list with zero
๐Ÿ”ค
String Uppercase
Convert all string elements in a list to uppercase
๐Ÿ› ๏ธ
Intermediate (31-70)
Logic Patterns, Strings, Functions
๐Ÿ”—
Common Elements
Find elements that exist in both lists
โž–
List Difference
Find elements that are in one list but not the other
โญ
Star Triangle
Print a triangle pattern using asterisks (*)
๐Ÿ”ป
Reverse Triangle
Print an inverted triangle pattern
๐Ÿ”บ
Number Pyramid
Create a pyramid pattern using numbers
๐Ÿ”
Prime Checker
Check if a number has exactly two divisors
๐Ÿ“‹
Prime List
Generate all prime numbers between 1 and 100
๐Ÿ”ค
ASCII Values
Display ASCII code for each character in a string
๐Ÿงน
Special Char Remover
Remove all non-alphabetic characters from text
๐Ÿ“Š
Case Counter
Count uppercase and lowercase letters separately
๐Ÿ”ค
Title Case
Capitalize first letter of each word in a sentence
๐Ÿ”„
Space Replacer
Replace all spaces with underscores in text
โœ‚๏ธ
Substring Generator
Find all possible substrings of a given string
๐Ÿ”
Substring Counter
Count occurrences of a substring in main string
๐Ÿ”ค
Anagram Checker
Check if two strings contain same letters rearranged
๐Ÿ“ˆ
Duplicate Counter
Count characters that appear more than once
๐Ÿ†•
First Non-Repeating
Find first character that appears only once
๐Ÿ”
First Repeating
Find first character that appears more than once
๐Ÿ”ข
Decimal to Binary
Convert decimal number to binary representation
๐Ÿ”ข
Binary to Decimal
Convert binary number to decimal representation
๐ŸŒก๏ธ
Temperature Converter
Convert temperature from Celsius to Fahrenheit
๐ŸŽฒ
Random Generator
Generate a list of N random numbers
๐Ÿ“
Formula Sum
Sum 1 to N using mathematical formula (N*(N+1)/2)
โšก
Power Calculator
Calculate power without using ** operator
๐Ÿงฎ
Calculator Functions
Create add, subtract, multiply, divide functions
๐Ÿ’ฐ
Compound Interest
Calculate compound interest for investments
๐Ÿ”„
List Rotator
Shift all elements in list one position to the right
๐Ÿ“Š
Sort Checker
Check if a list is already sorted in ascending order
๐Ÿ”—
List Merger
Merge two sorted lists into one sorted list
โ“
Missing Number
Find which number is missing from 1 to N sequence
๐Ÿ”
Duplicate Finder
Find all numbers that appear more than once
โž•
Sum Pairs
Count pairs of numbers that add up to target sum
๐Ÿ”
Binary Search
Implement efficient search algorithm for sorted lists
๐Ÿšซ
Zero Remover
Remove all zero values from a list
๐Ÿ“ฆ
List Flattener
Convert nested list into single flat list
๐Ÿ“ˆ
Max Character
Find character that appears most frequently
๐Ÿšซ
Vowel Remover
Remove all vowels from a string
โฌ›
Checkerboard Pattern
Create alternating pattern like a checkerboard
๐Ÿ”„
Variable Swapper
Swap two variables without using a third variable
๐Ÿ”ข
Digit Extractor
Extract and print only numeric digits from a string
๐Ÿ”ด
Advanced (71-100)
Recursion, Algorithms, Mini-Projects
๐Ÿ”
Recursive Factorial
Calculate factorial using recursive function calls
๐ŸŒ€
Recursive Fibonacci
Generate Fibonacci numbers using recursion
๐Ÿ—ผ
Tower of Hanoi
Solve classic Tower of Hanoi puzzle for 3 disks
๐Ÿ”บ
Pascal's Triangle
Generate Pascal's Triangle with binomial coefficients
๐Ÿ”„
String Permutations
Find all possible arrangements of string characters
๐Ÿ”ข
Bubble Sort
Sort array by repeatedly swapping adjacent elements
๐Ÿ“ฅ
Insertion Sort
Sort by inserting each element in correct position
๐ŸŽฏ
Selection Sort
Sort by selecting minimum element in each iteration
๐Ÿ“
Longest Word
Find the longest word in a given sentence
๐Ÿง
Mini ATM System
Create ATM with deposit, withdraw, and balance features
๐ŸŽฒ
Dice Simulator
Simulate rolling a six-sided dice
๐Ÿง 
Coin Toss
Simulate flipping a coin (heads or tails)
๐Ÿ”
Password Generator
Generate random password of specified length
๐Ÿ“ง
Email Validator
Check if email address has valid format
๐Ÿ”’
Password Validator
Check password strength (length, symbols, uppercase, numbers)
๐ŸŽฏ
Number Guessing Game
Create game where user guesses random number
๐ŸŽช
Hangman Game
Create classic word guessing game
๐Ÿ”ค
Number to Words
Convert digits to word form (123 โ†’ "one two three")
๐Ÿ“Š
Character Counter
Count digits, letters, and symbols separately
๐Ÿ’ช
Armstrong Number
Check if number equals sum of cubes of its digits
๐Ÿ“‹
Armstrong Range
Find all Armstrong numbers in given range
๐Ÿ”ข
Random OTP
Generate random One-Time Password
๐Ÿ›๏ธ
Caesar Cipher
Implement classic encryption by shifting letters
1๏ธโƒฃ
Set Bits Counter
Count number of 1s in binary representation
0๏ธโƒฃ
Trailing Zeroes
Count trailing zeros in factorial of number
3๏ธโƒฃ
Zero Sum Triplets
Find all unique triplets that sum to zero
๐Ÿ“ˆ
Longest Increasing
Find longest increasing subsequence in list
๐ŸŒ€
Spiral Matrix
Print matrix elements in spiral order
๐Ÿ”„
Matrix Transpose
Convert rows to columns and vice versa
๐Ÿ”„
Reverse Words
Reverse word order but keep character order intact