Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A comprehensive collection of Python Programming Challenges (35+ Jupyter Notebooks) covering Beginner to Advanced topics, including Data Analysis, OOP, and Algorithms.

License

NotificationsYou must be signed in to change notification settings

devkoustavdas/python-programming-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to a curated roadmap of Python coding exercises designed to take you frombeginner toadvanced, one challenge at a time. This repository is built around Jupyter Notebooks for interactive learning.Python Documentation:https://docs.python.org/3/

Who is this for?

  • Students looking tolevel up their core Python
  • Developers practicing forcoding or analyst interviews
  • Bootcampers buildingproject portfolios
  • Anyone who wants to improve in astructured, concept-rich way

This repository offers a focused deep-dive into critical areas of Python programming:

  • Data Structures & Algorithms
  • Object-Oriented Programming (OOP)
  • File Handling & Date/Time Operations
  • Statistical Analysis & Data Manipulation (Pandas, NumPy)
  • List Comprehensions & Functional Programming

LEVEL 1 – Fundamentals & Core Logic(Beginner)

Focus: Strings, math, loops, lists, dicts, conditionals

#Problem DescriptionConcepts CoveredStatus
1Check if number is divisible by 13 but not 5if,%,and, input✅ Done
2Count frequency of each character in a string & sortLoops,dict, sorting✅ Done
3Count frequency of words in a sentence.split(),dict, loop✅ Done
4Convert decimal to binary manuallyMath, loop, string logic✅ Done
5Check if a string is a palindromeString slicing✅ Done
6Squares of even numbers using list comprehensionList comprehension✅ Done
7Countdown to next birthdaydatetime,timedelta✅ Done
8Check Armstrong numberMath, loop, power op✅ Done
9Reverse words in a sentence.split(), slicing❌ Not Yet
10Replace vowels in a string with#Loop, string replace✅ Done
11Find all prime numbers up toNLoops, nestedif❌ Not Yet
12Compute factorial (loop and recursion)for,def, recursion✅ Done
13Evaluate formula:Q = √((2×C×D)/H) from inputsMath, user input✅ Done
14Anagram checker (using freq dict)Dict, sets, sorting✅ Done
15Calculate LCM & HCF of two numbersMath, GCD, loops✅ Done
16Simulate robot movement in 2D plane with directionsTuples,abs(), loop✅ Done
17Run-Length Encoder (Convert aaabbccc → a3b2c3)String compression, logic✅ Done
18Calculate BMI for adultsRaise Error, Docstrings✅ Done

LEVEL 2 – Functions, 2D Data & CLI Tools(Intermediate)

Focus: Functions, nested data, CLI interfaces, intro to OOP

#Problem DescriptionConcepts CoveredStatus
1Create 2D matrix where [i][j] = i×jNested loops, 2D list✅ Done
2Multiply 2 matrices manuallyLoops, nested list✅ Done
3Generate strong passwordrandom, string, loop✅ Done
4Rock-paper-scissors CLI gameCLI loop, random choice❌ Not Yet
5Grocery billing with discounts + receipt generatorLoops, dict, formatting❌ Not Yet
6Contact book (add/search/delete)Dict of dicts, CLI menu✅ Done
7Hotel room booking simulationOOP, static method, date handling✅ Done
8Replace words in paragraph.replace(), string logic❌ Not Yet
9Bank Account class with deposit, withdraw, PIN checkOOP (encapsulation)✅ Done
10Frequency plot of letters in a sentenceASCII art, count, loop❌ Not Yet
11Recursive Fibonacci generatorrecursion, math❌ Not Yet
12Build a mini-dictionary CLI toolDict, file I/O❌ Not Yet
13Validate random password rulesConditions, loop❌ Not Yet
14Quick math game (timer & scoring)Game logic, random✅ Done
15Analyze Sales Numbers usingpandaspandas, summarization✅ Done
16Expenses Split Calculator with distributed amountsMath, rounding, functions✅ Done

LEVEL 3 – File I/O, Real-world Logic & Games(Upper Intermediate)

Focus: File handling, validation, pandas, JSON, games

#Problem DescriptionConcepts CoveredStatus
1Generate invoice with tax & discountOOP, dict, formatting✅ Done
2Hangman game (word bank, guesses, life system)CLI game logic✅ Done
3HandCricket game: toss → innings → resultGame loop, CLI✅ Done
4Scientific calculator with logs to fileMath ops, Error handling, File Handling✅ Done
5BMI calculator with logs to fileFile append, math❌ Not Yet
6Transaction logger with daily summaryFile I/O, string format❌ Not Yet
7Regex password strength checkerre module, validation❌ Not Yet
8Read/write contact book to text filefile open(), dict parsing❌ Not Yet
9Clean CSV, fill missing valuespandas,fillna,dropna❌ Not Yet
10Read JSON, update values, and savejson module, I/O❌ Not Yet
11Replace all duplicate chars with#2-pointer, greedy✅ Done
12Statistical Analysis of a list of numbersList, Filter, Sort, Statistics✅ Done
13Sort top 5 earners from.csv filepandas,sort_values()❌ Not Yet
14Exhaustive Search for minima of a functionMath, plotting (optional)✅ Done

LEVEL 4 – APIs, Analytics & Mini Projects(Advanced)

Focus: External libraries, APIs, modular OOP, basic ML/NLP

#Problem DescriptionConcepts CoveredStatus
1Email validator + CLI signup systemRegex, CLI, validation❌ Not Yet
2Fetch weather data from OpenWeather APIAPI calls,requests, JSON❌ Not Yet
3Expense tracker with monthly summaryOOP, file, CLI tools❌ Not Yet
4Convert sales CSV to JSON reportpandas, JSON, export❌ Not Yet
5CLI tool to merge 2 files line-by-lineFile reading, logic❌ Not Yet
6Create a quiz app with score and levelsOOP, state, CLI❌ Not Yet
7Income predictor using Linear Regressionsklearn, data prep❌ Not Yet
8Sentiment analysis on product reviewsTextBlob,nltk❌ Not Yet
9Income tax calculator (slabs + surcharge logic)Conditions, formatting❌ Not Yet
10Full OOP invoice system with session stateOOP,Streamlit, UI logic❌ Not Yet

How to Use This Repository

  • Choose adifficulty level you're comfortable with.(Currently, there are 3 levels – more coming soon!)
  • Each level folder containsJupyter Notebooks numbered as per the README.
  • Every notebook includes areal-world coding problem, followed by its solution.Try solving the problem yourself before peeking at the solution.
  • The problems aremini Python projects designed to mimic real-world use cases you might encounter during interviews, freelancing, or product development.
  • TheAssets/ folder contains all necessary input datasets and output/reference files.
  • You’ll findopen Issues with additional problem suggestions — feel free to attempt them!
  • Fork this repo and raise a PR to add your own problem variants or improvements!

Keywords

python beginner exercises,python coding problems,oop python practice,interview prep python,real world python mini projects,file io pandas python,python games and utilities


Recommended Tools to Pair

  • Jupyter Notebook / VS Code / Spyder
  • Python ≥ 3.9
  • pandas,requests,textblob,random,math

Contribute

  • Want to add more problems?
  • Found a bug in a solution?
  • Submit a Pull Request 🚀

Happy Coding

About

A comprehensive collection of Python Programming Challenges (35+ Jupyter Notebooks) covering Beginner to Advanced topics, including Data Analysis, OOP, and Algorithms.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp