Skip to content

patkaryash/Python-Training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding-Prashant-JHA

Python Days Focus

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.

Table of Contents

At a Glance

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

Suggested Path

  • Start with DAY1 and DAY2 to build comfort with syntax, conditions, loops, lists, and tuples.
  • Move to DAY3, DAY4, and DAY5 for functions, dictionaries, files, CSV work, and OOP.
  • Use DAY6 and DAY7 for abstraction, stacks, search, queues, and linked lists.
  • Finish with DAY8, DAY9, DAY10, and HACKERRANK for regex, recursion, trees, and challenge practice.
  • If you are revising, start from Featured Files and then skim the notes files.

Repository Structure

Coding-Prashant-JHA/
├── README.md
├── DAY1/
├── DAY2/
├── DAY3/
├── DAY4/
├── DAY5/
├── DAY6/
├── DAY7/
├── DAY8/
├── DAY9/
├── DAY10/
└── HACKERRANK/

Learning Journey

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

Day Highlights

DAY1

  • Variables, input, and data types
  • Type casting, operators, and identity or membership checks
  • Conditional logic and small arithmetic exercises

DAY2

  • Lists, tuples, slicing, and traversal
  • Looping practice and control flow
  • String and array challenges such as palindromes and anagrams

DAY3

  • Functions and arguments
  • Dictionaries and nested loops
  • String cleanup with strip()

DAY4

  • Predefined string methods
  • Exception handling and file I/O
  • CSV practice and text-based exercises

DAY5

  • Classes, objects, and constructors
  • Inheritance and polymorphism
  • Method behavior, static methods, and CRUD-style practice

DAY6

  • Abstraction and encapsulation
  • Stack implementation
  • Recursion with Tower of Hanoi and string utilities

DAY7

  • Big O notation basics
  • Linear search and binary search
  • Queue and linked list practice

DAY8

  • Matrix input and row-wise traversal
  • Regex matching, searching, and substitutions
  • File existence checking and numeric validation

DAY9

  • Recursion fundamentals
  • Tree and BST concepts
  • Array and string recursion drills

DAY10

  • 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

HACKERRANK

  • Counting numbers in a list
  • Missing-number challenge practice

Featured Files

  • DAY1/simpleinterest.py - a quick arithmetic and input exercise
  • DAY3/functions.py - function basics
  • DAY4/filehandling.py - file I/O practice
  • DAY5/constructor.py - constructor practice
  • DAY6/towerofHanoi.py - recursion practice
  • DAY7/binarysearch.py - search algorithm practice
  • DAY8/regex.py - regex practice
  • DAY9/factorial.py - recursive factorial
  • DAY10/Datetime.py - datetime formatting
  • DAY10/checkprime.py - prime-number practice
  • DAY10/compoundinterest.py - compound interest calculation
  • DAY10/dictionarycompress.py - dictionary comprehension practice
  • DAY10/gift.py - pair-difference logic
  • DAY10/graph.py - graph adjacency list implementation
  • DAY10/listcompress.py - list comprehension practice
  • HACKERRANK/missingnum.py - challenge-style array problem

Notes Files

Each learning folder includes a short note file for quick revision:

  • DAY1/DAY 1 notes.txt
  • DAY2/DAY 2 Notes.txt
  • DAY3/DAY3 notes.txt
  • DAY4/Day 4 notes.txt
  • DAY5/DAY5 notes.txt
  • DAY6/Day 6 notes.txt
  • DAY7/DAY 7.txt
  • DAY8/DAY 8 notes.txt
  • DAY9/DAY 9.txt
  • DAY10/DAY10 Notes.txt

Practice Files

DAY1

  • 1.py, 2.py, 3.py, 4.py - beginner practice scripts
  • authlogin.py - input and validation practice
  • case.py - conditional branching practice
  • conditional.py - condition-based problem solving
  • control_statement.py - control-flow practice
  • greater.py - comparison logic
  • height.py - input and comparison practice
  • identityoperator.py - identity operator practice
  • marks,%,gender.py - marks and percentage logic
  • marks.py - marks-based logic
  • membershipoperator.py - membership operator practice
  • nested.py - nested condition practice
  • notes.py - scratchpad or note-style practice
  • reverse.py - reverse logic practice
  • simpleinterest.py - simple interest calculation
  • swap.py - swapping values
  • typecasting.py - type casting practice
  • weeks.py - weekday or week-number logic
  • DAY 1 notes.txt - revision notes

DAY2

  • anagrams.py - anagram checking
  • Bodmas.py - order-of-operations practice
  • commonelements.py - common element search
  • control1.py - control-flow practice
  • countwords.py - word counting
  • DAY 2 Notes.txt - revision notes
  • distancesum.py - distance or sum logic
  • distsum.py - distance or sum logic
  • duplicates.py - duplicate detection
  • formatfunction.py - formatting practice
  • list.py - list operations
  • list2.py - additional list operations
  • looping.py - loop practice
  • palindrome.py - palindrome checking
  • product.py - product calculation
  • removeduplicate.py - duplicate removal
  • reverseloop.py - reverse iteration
  • slicing.py - slicing practice
  • tasks.py - mixed exercises
  • traverselist.py - list traversal
  • tuple.py - tuple practice

DAY3

  • argumentfun.py - function arguments
  • DAY3 notes.txt - revision notes
  • dictionary.py - dictionary practice
  • dictQuiz.py - dictionary quiz
  • functionQuiz.py - function quiz
  • functions.py - function basics
  • majorityelement.py - majority element logic
  • nestedfor.py - nested for-loop practice
  • rearrange.py - rearranging data
  • stripfun.py - string trimming

DAY4

  • album poster.jpg - sample image asset
  • cowboy.jpg - sample image asset
  • Day 4 notes.txt - revision notes
  • exceptionhandling.py - exception handling
  • filehandling.py - file I/O
  • importcsv.py - CSV import
  • myfile.txt - sample text file
  • predefinedfun.py - string methods and built-ins
  • product.py - product calculation
  • removeoccurence.py - character or value removal
  • result.py - result-processing practice
  • results1.csv - sample CSV data
  • students.csv - sample CSV data
  • Tasks.py - mixed practice
  • vowels cons.py - vowel or consonant counting

DAY5

  • class.py - class basics
  • commonlists.py - list practice
  • constructor.py - constructor practice
  • constructoroverriding.py - constructor overriding
  • crud.py - CRUD-style OOP practice
  • DAY5 notes.txt - revision notes
  • instance.py - instance basics
  • instancemethod.py - instance methods
  • method overriding.py - method overriding
  • methodoverloading.py - method overloading
  • multilevel.py - multilevel inheritance
  • multiplelevel.py - inheritance practice
  • palindrome.py - palindrome logic
  • polymorphism.py - polymorphism practice
  • reverselist.py - reverse list logic
  • SingleInheritance.py - single inheritance
  • static.py - static member practice
  • staticmethod.py - static methods

DAY6

  • abstraction.py - abstraction practice
  • abstractmethod.py - abstract method practice
  • compress.py - string compression or compact logic
  • Day 6 notes.txt - revision notes
  • Enacapsulation.py - encapsulation practice
  • pubpvtmethod.py - public or private method practice
  • reverseword.py - reverse-word logic
  • stackwosize.py - stack without size limit
  • stackwsizelimit.py - stack with size limit
  • task.py - mixed practice
  • towerofHanoi.py - Tower of Hanoi recursion

DAY7

  • apparel.py - logic practice
  • binarysearch.py - binary search
  • DAY 7.txt - revision notes
  • dictionarykey.py - dictionary key practice
  • findbiggestnum.py - largest-number search
  • linearsearch.py - linear search
  • linkedlist.py - linked list basics
  • menulinked.py - menu-driven linked list practice
  • quad.py - math or quadratic-style logic practice
  • queue.py - queue implementation
  • secretmsg.py - string or message logic

DAY8

  • DAY 8 notes.txt - revision notes
  • file exits.py - file existence check
  • findall.py - regex findall()
  • fullmatch.py - regex fullmatch()
  • leadingzero.py - leading-zero cleanup
  • match.py - regex match()
  • matrixinput.py - matrix input and row maximum
  • regex.py - regex practice
  • regex2.py - regex counting
  • regex3.py - regex search practice
  • searchfun.py - regex search() and file search
  • sub().py - regex sub()
  • subn().py - regex subn()
  • validnumber.py - regex validation

DAY9

  • BST.py - binary search tree practice
  • BST1.py - alternate BST practice
  • capitalize.py - capitalization practice
  • DAY 9.txt - revision notes
  • factorial.py - recursive factorial
  • isPalindrome.py - palindrome checking
  • power.py - recursive power calculation
  • productofArray.py - product of array elements
  • running sum.py - running sum logic
  • tree.py - tree basics
  • twosum.py - two-sum style practice

DAY10

  • checkprime.py - print prime numbers up to a given range
  • compoundinterest.py - compound interest calculation
  • Datetime.py - current date and time formatting
  • dictionarycompress.py - dictionary comprehension example
  • gift.py - pair-difference counting problem
  • graph.py - adjacency list graph implementation
  • listcompress.py - list comprehension example
  • DAY10 Notes.txt - revision notes

HACKERRANK Practice

  • countnum.py - count numbers in a list
  • missingnum.py - missing-number challenge

How to Run

Run any Python file from the project root:

python DAY8/matrixinput.py
python DAY9/factorial.py
python DAY10/gift.py

If 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.

Purpose

This repository works like a personal Python practice notebook. The goal is to keep each concept small, runnable, and easy to revisit during revision.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages