A day-wise Python and problem-solving notebook with short notes, small runnable scripts, and beginner-friendly exercises. The repo moves from core syntax to functions, OOP, data structures, regex, recursion, trees, and a few HackerRank-style challenges.
- At a Glance
- Suggested Path
- Repository Structure
- Learning Journey
- Day Highlights
- Featured Files
- Notes Files
- Practice Files
- HACKERRANK Practice
- How to Run
- Purpose
| Item | Details |
|---|---|
| Primary language | Python |
| Main focus | Python basics, OOP, DSA, regex, recursion, trees, and graph/problem-solving drills |
| Learning style | Small scripts, revision notes, and hands-on practice |
| File types | .py, .txt, .csv, .jpg |
| Good for | Revision, beginner practice, and interview warm-up |
| Extra practice | HACKERRANK/ challenge problems |
| Tip | Use quotes around file paths that contain spaces or special characters |
- Start with
DAY1andDAY2to build comfort with syntax, conditions, loops, lists, and tuples. - Move to
DAY3,DAY4, andDAY5for functions, dictionaries, files, CSV work, and OOP. - Use
DAY6andDAY7for abstraction, stacks, search, queues, and linked lists. - Finish with
DAY8,DAY9,DAY10, andHACKERRANKfor regex, recursion, trees, and challenge practice. - If you are revising, start from
Featured Filesand then skim the notes files.
Coding-Prashant-JHA/
├── README.md
├── DAY1/
├── DAY2/
├── DAY3/
├── DAY4/
├── DAY5/
├── DAY6/
├── DAY7/
├── DAY8/
├── DAY9/
├── DAY10/
└── HACKERRANK/
| Folder | Main Focus |
|---|---|
DAY1 |
Python basics, data types, operators, type casting, and conditionals |
DAY2 |
Lists, tuples, slicing, loops, and string/list practice |
DAY3 |
Functions, arguments, dictionaries, and nested loop logic |
DAY4 |
String methods, exception handling, file handling, and CSV work |
DAY5 |
OOP basics, constructors, inheritance, polymorphism, and CRUD practice |
DAY6 |
Abstraction, encapsulation, stacks, and recursion practice |
DAY7 |
Big O basics, searching, queues, linked lists, and logic problems |
DAY8 |
Matrix input, regex, pattern matching, and file checks |
DAY9 |
Recursion, trees, binary search trees, and related drills |
DAY10 |
Graphs, comprehensions, number practice, and pair-difference counting |
HACKERRANK |
Challenge-style counting and missing-number practice |
- Variables, input, and data types
- Type casting, operators, and identity or membership checks
- Conditional logic and small arithmetic exercises
- Lists, tuples, slicing, and traversal
- Looping practice and control flow
- String and array challenges such as palindromes and anagrams
- Functions and arguments
- Dictionaries and nested loops
- String cleanup with
strip()
- Predefined string methods
- Exception handling and file I/O
- CSV practice and text-based exercises
- Classes, objects, and constructors
- Inheritance and polymorphism
- Method behavior, static methods, and CRUD-style practice
- Abstraction and encapsulation
- Stack implementation
- Recursion with Tower of Hanoi and string utilities
- Big O notation basics
- Linear search and binary search
- Queue and linked list practice
- Matrix input and row-wise traversal
- Regex matching, searching, and substitutions
- File existence checking and numeric validation
- Recursion fundamentals
- Tree and BST concepts
- Array and string recursion drills
- Graph basics and adjacency list representation
- List and dictionary comprehensions
- Prime-number generation and compound interest
- Datetime formatting
- Pair-difference counting and nested-loop logic
- Counting numbers in a list
- Missing-number challenge practice
DAY1/simpleinterest.py- a quick arithmetic and input exerciseDAY3/functions.py- function basicsDAY4/filehandling.py- file I/O practiceDAY5/constructor.py- constructor practiceDAY6/towerofHanoi.py- recursion practiceDAY7/binarysearch.py- search algorithm practiceDAY8/regex.py- regex practiceDAY9/factorial.py- recursive factorialDAY10/Datetime.py- datetime formattingDAY10/checkprime.py- prime-number practiceDAY10/compoundinterest.py- compound interest calculationDAY10/dictionarycompress.py- dictionary comprehension practiceDAY10/gift.py- pair-difference logicDAY10/graph.py- graph adjacency list implementationDAY10/listcompress.py- list comprehension practiceHACKERRANK/missingnum.py- challenge-style array problem
Each learning folder includes a short note file for quick revision:
DAY1/DAY 1 notes.txtDAY2/DAY 2 Notes.txtDAY3/DAY3 notes.txtDAY4/Day 4 notes.txtDAY5/DAY5 notes.txtDAY6/Day 6 notes.txtDAY7/DAY 7.txtDAY8/DAY 8 notes.txtDAY9/DAY 9.txtDAY10/DAY10 Notes.txt
1.py,2.py,3.py,4.py- beginner practice scriptsauthlogin.py- input and validation practicecase.py- conditional branching practiceconditional.py- condition-based problem solvingcontrol_statement.py- control-flow practicegreater.py- comparison logicheight.py- input and comparison practiceidentityoperator.py- identity operator practicemarks,%,gender.py- marks and percentage logicmarks.py- marks-based logicmembershipoperator.py- membership operator practicenested.py- nested condition practicenotes.py- scratchpad or note-style practicereverse.py- reverse logic practicesimpleinterest.py- simple interest calculationswap.py- swapping valuestypecasting.py- type casting practiceweeks.py- weekday or week-number logicDAY 1 notes.txt- revision notes
anagrams.py- anagram checkingBodmas.py- order-of-operations practicecommonelements.py- common element searchcontrol1.py- control-flow practicecountwords.py- word countingDAY 2 Notes.txt- revision notesdistancesum.py- distance or sum logicdistsum.py- distance or sum logicduplicates.py- duplicate detectionformatfunction.py- formatting practicelist.py- list operationslist2.py- additional list operationslooping.py- loop practicepalindrome.py- palindrome checkingproduct.py- product calculationremoveduplicate.py- duplicate removalreverseloop.py- reverse iterationslicing.py- slicing practicetasks.py- mixed exercisestraverselist.py- list traversaltuple.py- tuple practice
argumentfun.py- function argumentsDAY3 notes.txt- revision notesdictionary.py- dictionary practicedictQuiz.py- dictionary quizfunctionQuiz.py- function quizfunctions.py- function basicsmajorityelement.py- majority element logicnestedfor.py- nested for-loop practicerearrange.py- rearranging datastripfun.py- string trimming
album poster.jpg- sample image assetcowboy.jpg- sample image assetDay 4 notes.txt- revision notesexceptionhandling.py- exception handlingfilehandling.py- file I/Oimportcsv.py- CSV importmyfile.txt- sample text filepredefinedfun.py- string methods and built-insproduct.py- product calculationremoveoccurence.py- character or value removalresult.py- result-processing practiceresults1.csv- sample CSV datastudents.csv- sample CSV dataTasks.py- mixed practicevowels cons.py- vowel or consonant counting
class.py- class basicscommonlists.py- list practiceconstructor.py- constructor practiceconstructoroverriding.py- constructor overridingcrud.py- CRUD-style OOP practiceDAY5 notes.txt- revision notesinstance.py- instance basicsinstancemethod.py- instance methodsmethod overriding.py- method overridingmethodoverloading.py- method overloadingmultilevel.py- multilevel inheritancemultiplelevel.py- inheritance practicepalindrome.py- palindrome logicpolymorphism.py- polymorphism practicereverselist.py- reverse list logicSingleInheritance.py- single inheritancestatic.py- static member practicestaticmethod.py- static methods
abstraction.py- abstraction practiceabstractmethod.py- abstract method practicecompress.py- string compression or compact logicDay 6 notes.txt- revision notesEnacapsulation.py- encapsulation practicepubpvtmethod.py- public or private method practicereverseword.py- reverse-word logicstackwosize.py- stack without size limitstackwsizelimit.py- stack with size limittask.py- mixed practicetowerofHanoi.py- Tower of Hanoi recursion
apparel.py- logic practicebinarysearch.py- binary searchDAY 7.txt- revision notesdictionarykey.py- dictionary key practicefindbiggestnum.py- largest-number searchlinearsearch.py- linear searchlinkedlist.py- linked list basicsmenulinked.py- menu-driven linked list practicequad.py- math or quadratic-style logic practicequeue.py- queue implementationsecretmsg.py- string or message logic
DAY 8 notes.txt- revision notesfile exits.py- file existence checkfindall.py- regexfindall()fullmatch.py- regexfullmatch()leadingzero.py- leading-zero cleanupmatch.py- regexmatch()matrixinput.py- matrix input and row maximumregex.py- regex practiceregex2.py- regex countingregex3.py- regex search practicesearchfun.py- regexsearch()and file searchsub().py- regexsub()subn().py- regexsubn()validnumber.py- regex validation
BST.py- binary search tree practiceBST1.py- alternate BST practicecapitalize.py- capitalization practiceDAY 9.txt- revision notesfactorial.py- recursive factorialisPalindrome.py- palindrome checkingpower.py- recursive power calculationproductofArray.py- product of array elementsrunning sum.py- running sum logictree.py- tree basicstwosum.py- two-sum style practice
checkprime.py- print prime numbers up to a given rangecompoundinterest.py- compound interest calculationDatetime.py- current date and time formattingdictionarycompress.py- dictionary comprehension examplegift.py- pair-difference counting problemgraph.py- adjacency list graph implementationlistcompress.py- list comprehension exampleDAY10 Notes.txt- revision notes
countnum.py- count numbers in a listmissingnum.py- missing-number challenge
Run any Python file from the project root:
python DAY8/matrixinput.py
python DAY9/factorial.py
python DAY10/gift.pyIf a filename contains spaces or special characters, wrap the path in quotes:
python "DAY9/running sum.py"
python "DAY4/Day 4 notes.txt"Some files take user input from the terminal, while others simply print results.
This repository works like a personal Python practice notebook. The goal is to keep each concept small, runnable, and easy to revisit during revision.