Skip to content

Latest commit

 

History

History
435 lines (356 loc) · 7.97 KB

File metadata and controls

435 lines (356 loc) · 7.97 KB

🐍 Python 300 Challenge 🚀

Master Python fundamentals in 30 days by solving 300 questions 👉 Focus: Lists, Strings, Dictionaries, Functions & File Handling


📅 Rules

  • Solve 10 questions daily
  • Total: 300 questions in 30 days
  • If you miss a day → cover backlog next day
  • Try without help first, then debug & improve

✅ Progress Tracker


Week 1 — Lists (Day 1–7)

Day 1

  • Print all elements of a list
  • Find length of a list
  • Find maximum number
  • Find minimum number
  • Sum all elements
  • Count even numbers
  • Count odd numbers
  • Reverse a list
  • Remove duplicates
  • Find second largest number

Day 2

  • Take 5 inputs and store in list
  • Print list in reverse order
  • Print first element
  • Print last element
  • Print elements at even index
  • Print elements at odd index
  • Check if element exists
  • Count occurrences of element
  • Find sum of first & last
  • Find difference max-min

Day 3

  • Count positive numbers
  • Count negative numbers
  • Multiply all elements
  • Find average
  • Find largest without max()
  • Find smallest without min()
  • Remove negative numbers
  • Create square list
  • Create cube list
  • Separate even & odd

Day 4

  • Merge two lists
  • Find common elements
  • Remove element by index
  • Remove element by value
  • Find index of largest
  • Rotate list left
  • Rotate list right
  • Sort list (no sort())
  • Find second smallest
  • Find third largest

Day 5

  • Find all duplicates
  • Find unique elements
  • Flatten nested list
  • Split list into halves
  • Running sum
  • Cumulative product
  • Find median
  • Find mode
  • Implement bubble sort
  • Implement selection sort

Day 6

  • Find pair with given sum
  • Find pair with max product
  • Check palindrome list
  • Rotate list N times
  • Find intersection
  • Find union
  • Find difference
  • Check equal lists
  • Subset check
  • Count frequency manually

Day 7

  • Remove duplicates (no set)
  • Sort descending
  • Swap first & last
  • Shift zeros to end
  • Move negatives to front
  • Find missing number
  • Find repeating number
  • Find peaks in list
  • Split into chunks
  • Longest increasing subsequence (basic)

Week 2 — Strings (Day 8–14)

Day 8

  • Reverse a string
  • Count vowels
  • Count consonants
  • Check palindrome
  • Remove spaces
  • Replace characters
  • Convert to uppercase
  • Convert to lowercase
  • Count words
  • Find longest word

Day 9

  • Print characters line by line
  • Count uppercase
  • Count lowercase
  • Count digits
  • Count special characters
  • Remove digits
  • Remove punctuation
  • ASCII values
  • Replace space with _
  • First non-repeating char

Day 10

  • First repeating character
  • Most frequent character
  • Remove duplicate chars
  • Sort characters
  • Check anagram
  • Count substring
  • Longest unique substring
  • Swap first & last char
  • Remove first occurrence
  • Remove last occurrence

Day 11

  • Capitalize words
  • Reverse each word
  • Find shortest word
  • Words starting with vowel
  • Words longer than N
  • Replace vowels with *
  • Count sentences
  • String → list
  • List → string
  • Find substring index

Day 12

  • Run-length encoding
  • String compression
  • Rotation check
  • Remove consecutive duplicates
  • Longest palindrome substring
  • Only alphabets check
  • Only digits check
  • Mask email
  • Format phone
  • Password validation

Day 13

  • Count repeating words
  • Remove stop words
  • Find word frequency
  • Replace word
  • Count punctuation
  • Extract numbers
  • Extract emails
  • Extract hashtags
  • Remove extra spaces
  • Title case

Day 14

  • Caesar cipher
  • Reverse sentence order
  • Find longest prefix
  • Find longest suffix
  • Compare strings ignoring case
  • Remove substring
  • Count overlapping substrings
  • Find mirrored string
  • String interleaving
  • Validate IP format

Week 3 — Dictionaries (Day 15–21)

Day 15

  • Create dictionary
  • Print keys
  • Print values
  • Print key-value pairs
  • Count keys
  • Check key exists
  • Update value
  • Remove key
  • Clear dictionary
  • Copy dictionary

Day 16

  • Merge dictionaries
  • Max value
  • Min value
  • Sum values
  • Multiply values
  • Count even values
  • Count odd values
  • Dict → list
  • List → dict
  • Squares dictionary

Day 17

  • Student marks
  • Average marks
  • Topper
  • Word frequency
  • Character frequency
  • Most frequent word
  • Least frequent word
  • Group by length
  • Phonebook
  • Search contact

Day 18

  • Nested dictionary
  • Employee data
  • Sort by keys
  • Sort by values
  • Duplicate values
  • Invert dictionary
  • Count list freq
  • Merge same keys
  • Create from lists
  • Dict comprehension

Day 19

  • Inventory system
  • Voting system
  • Library system
  • Attendance tracker
  • Student grading
  • Expense tracker
  • Product catalog
  • Shopping cart
  • Bank system
  • Quiz system

Day 20

  • Group anagrams
  • Frequency sort
  • Key with max length
  • Key with min length
  • Flatten nested dict
  • Nested sum
  • Deep copy dict
  • Count nested keys
  • Merge nested dict
  • Filter dictionary

Day 21

  • Reverse mapping
  • Dict difference
  • Dict intersection
  • Sort nested dict
  • Most common pair
  • Least common pair
  • Group by first letter
  • Group by last letter
  • Count unique values
  • Remove duplicate values

Week 4 — Functions & File Handling (Day 22–30)

Day 22

  • Prime function
  • Factorial
  • Fibonacci
  • Armstrong
  • Perfect number
  • GCD
  • LCM
  • Random number game
  • Calculator
  • Guess number

Day 23

  • Even/odd function
  • Positive/negative
  • Max of two
  • Min of three
  • Swap numbers
  • Square function
  • Cube function
  • Power function
  • Sum of digits
  • Reverse number

Day 24

  • Count digits
  • Multiplication table
  • Prime list
  • Factorial list
  • Fibonacci list
  • Remove duplicates (function)
  • Sort list (function)
  • Count vowels
  • Count consonants
  • Count words

Day 25

  • Longest word function
  • Shortest word
  • Palindrome string
  • Anagram check
  • Frequency counter
  • List average
  • List median
  • List mode
  • List rotation
  • List intersection

Day 26

  • Create file
  • Write file
  • Read file
  • Read line by line
  • Count lines
  • Count words
  • Count characters
  • Append file
  • Copy file
  • Longest line

Day 27

  • Shortest line
  • Word frequency file
  • Character frequency
  • Most frequent word
  • Replace word
  • Remove blank lines
  • Uppercase file
  • Lowercase file
  • Count vowels
  • Count digits

Day 28

  • Reverse lines
  • Sort file content
  • Merge files
  • Split file
  • Find duplicates
  • Search word
  • Count sentences
  • Extract emails
  • Extract numbers
  • File stats

Day 29

  • Todo app
  • Contact book
  • Quiz game
  • Password generator
  • Story generator
  • Word guessing game
  • Grade manager
  • Notes system
  • Calculator app
  • Random story

Day 30

  • File search tool
  • Log analyzer
  • Text stats tool
  • Password file generator
  • Email cleaner
  • Duplicate finder
  • Text adventure game
  • Word ladder
  • Sudoku validator
  • Spell checker

🎯 Goal

✔ Build strong Python fundamentals ✔ Think logically ✔ Write clean code daily


🔥 Consistency > Perfection