Welcome to the Python-Training repo! 🎯
This repository collects small, single-file Python programs and examples organized by date (each folder is a day of practice). The goal is to learn basic Python syntax, fundamental data structures, simple algorithms, and OOP concepts across short, focused exercises.
- Each day folder is named with a date (e.g.,
24-11-2025). For readability, this README renames each folder as "Day N - Folder Name". - To run a script: open a terminal and run
python3 <scriptname>.pyfrom the respective day folder (many scripts read stdin so they will prompt for input). - These scripts are mostly standalone practice files; some are purely demonstrative and include
printstatements to show behavior.
Below you will find a compact, well-organized summary for each day including file names and one-line descriptions.
Files and short descriptions:
Age_In_2050.py— Calculate age in the year 2050 from the given birth year.Area.py— Compute area of a rectangle (length × width).Basic_Operation.py— Basic arithmetic operations (add, subtract, multiply, divide).Basic.py— Introduction to Python: prints, variables, arithmetic, loops, conditions, list basics.Introduction to Python Document.docx— Course or lesson material (document file for reference).Last Digit.py— Print the last digit of an input number.Login_Password.py— Simple username/password check (hard-coded check foradmin/1234).N_Natural_Numbers.py— Sum of first N natural numbers (using formula).Number.py— Determine whether a number is positive, negative, or zero.NumberOfDigit.py— Count digits in an integer.Odd_Even.py— Check even/odd of a number.Reverse.py— Reverse the digits of an integer.Square_Cube.py— Compute square and cube for a number (simple demo).Swap_Numbers.py— Swap two numbers using arithmetic operations (no temp variable).Table.py— Display multiplication table for a number.Time.py— Convert minutes to hours and minutes.
- Basic syntax and print statements
- Variables, arithmetic, and operators
- Conditional statements and loops
- Simple I/O using
input() - Elementary problem solving with numeric manipulations
Files and short descriptions:
Basic_dictionary.py— Simple dictionary usage and operations.Basic_Sets.py— Demonstrating Pythonsetoperations: add, update, union, intersection, difference.Create_New_List_of_Squares.py— Build a list of squares (list comprehension / loop demo).DIsjoint.py— Check whether two sets are disjoint.Department Count.py— Count occurrences by department (basic frequency/counting example).Duplicate.py— Find duplicate elements in a list.Extract_Only_Prime_Numbers.py— Filter/screen prime numbers from a list.Find_All_Indices_of_Given_Value.py— Find all indices of a given value in a list.Flattend List.py— Flatten nested lists into a single list.Increasing Tuple.py— Work with tuples and check increasing or order operations.Index.py— Demonstrate list/tuple index usage.Interchange_First_and_Last Elements.py— Swap first and last elements in a list.Less Than 100.py— Filter numbers less than 100 from a list.List_Baisc.py— Demonstrate list and tuple basics (slicing, methods, tuple unpacking).Max Marks.py— Compute maximum marks (or similar aggregation by dataset).Merge Dict.py— Merge two dictionaries.More_Than_3_Words.py— Filter strings with more than 3 words/length or criteria.Move_All_Zeros_to_the_End.py— Move zeros to the end of a list while preserving order of other elements.Negative_Positive.py— Separate negative and positive numbers into separate lists.Number_String_Tuple.py— Convert numbers to strings inside tuples (or handling tuple values).Recursion.py— Recursion example (e.g., factorial, fibonacci) or demonstration of recursive logic.Reverse_Tuple.py— Reverse a tuple or similar tuple transformations.RotateN.py— Rotate list elements by N positions.Second_Largest_Number.py— Find the second largest number in a list.Separate_Even_Odd_into_Two_Lists.py— Split a list into even and odd numbers.Set_Target.py— Solve set-target or subset related problem.Set_in_order.py— Sort or maintain set order (convert to list and sort).Sets Union.py— Demonstrate union operation on sets.Swap Key And Value.py— Swap keys and values of a dictionary.unique characters.py— Extract or count unique characters from a string.
- Collection types and operations (list, tuple, set, dict)
- Common list transformations (filtering, rotating, flattening)
- Mutable vs immutable: tuples vs lists
- Simple algorithms: prime-checking, duplication detection, and counting
Files and short descriptions:
Bank Account.py— OOP practice around bank account operations (deposit, withdraw, balance).BankAccount.py— Alternative implementation of bank account class.Basic_Class.py— Introduction to Python classes, objects, and methods (simple demo).Calculator_Class.py— Simple calculator class to demonstrate basic OOP operations.Loyalty.py— Loyalty program or membership class demonstration.Mobile.py— Mobile phone class with properties and methods.Product.py— Product class for e-commerce or inventory system.Shopping Cart.py— Shopping cart implementation with add/remove/total operations.ShoppingCart.py— Alternative shopping cart implementation.Student Grades.py— Student grades management class.Student Marks.py— Student marks tracking and calculation.
Files and short descriptions:
Inheritence Basic.py— Introduction to inheritance with base and derived classes.File Handling.py— File I/O operations (read, write, append).Method Overloading.py— Demonstrating method overloading patterns in Python.Method Overrinding.py— Showing method overriding in inheritance.Payment with Overriding.py— Payment system with method overriding examples.Payment.py— Basic payment class implementation.sample.txt— Sample text file for file handling demonstrations.- Folders:
File Handling/,Single Heritence/,Hierarchical Inheritance/,Multilevel Inheritance/,Multiple Inheritance/
Files and short descriptions:
Attdence.py— Attendance management system (tracking attendance records).Email.py— Email sending or email validation utilities.Error.py— Error handling and exception demonstrations.Expense.py— Expense tracking or budget management.Lambda Basic.py— Lambda functions and functional programming basics.Order Summary.py— Order summary report generation.Order.py— Order class implementation.Phone.py— Phone number validation or phone contact utilities.Quiz.py— Quiz or questionnaire implementation.System.py— System utilities or system-level operations.Welcome.py— Welcome screen or greeting program.certificate.py— Certificate generation or management.product.py— Product-related utilities (alternative to Product.py from Day 3).- Data/Log files:
attdence.log,catlog.txt,contact.csv,contacts_export.txt,error.log,log_summary.txt,order_summary.txt,orders.csv,products.txt,questions.txt,report.txt,students.txt,user.txt,welcome.txt - Folders:
20 Question/,Next 20/
Files and short descriptions:
excercise.py— Practice exercises (likely covering Pandas or data manipulation).pandas_basic.py— Pandas DataFrame basics and operations.data.csv— Sample dataset for data analysis.student.csv— Student records dataset.- Folder:
sql/— SQL-related exercises and scripts.
Files and short descriptions:
db connection.py— Database connection utilities and setup.Excercise.txt— Exercise description or assignment details.SQL BASIC COMMAND— SQL command reference or examples.
Files and short descriptions:
Admin.py— Admin management or role-based access control class.Bank Account.py— Bank account operations (another iteration/variation).CSV to JSON.py— Convert CSV data to JSON format.Comman Elements in 3 sets.py— Find common elements across three sets.Electronic Warrenty.py— Electronic warranty management system.Employee Salary More than 60000.py— Filter employees with salary > 60000.Flattend List.py— Flatten nested/multi-dimensional lists.Library.py— Library management system (books, borrowing, etc.).List Of Tuple to Dictionary.py— Convert list of tuples to dictionary.List to Dictionary.py— Convert list to dictionary.Log timming.py— Log timing information for operations.Payment Class.py— Payment processing class.Product json discount.py— Apply discounts to products in JSON.Reading 20 names.py— Read and process 20 names from input/file.Reading File.py— File reading operations and demonstrations.Reading List Comprehention.py— List comprehension examples and usage.Remove Duplicate from list.py— Remove duplicate elements from lists.Reversing Alternate in List.py— Reverse alternate elements in a list.Seconde Highest Value.py— Find the second highest value in a dataset.Shopping Cart.py— Shopping cart with add/remove/checkout operations.Student Grade Card.py— Generate student grade card/report.Student Marks Dictionary.py— Student marks stored and queried from dictionary.Tuple with Unique name.py— Work with tuples containing unique names.Two Dictionary sum them for matching keys.py— Merge/sum two dictionaries by keys.Vechile Class.py— Vehicle class for OOP demonstration.Writting two files.py— Write data to multiple files simultaneously.mini calculator.py— Basic calculator operations (add, subtract, multiply, divide).word frequency dictionary.py— Count and store word frequencies in a dictionary.vowel consunants and digits.py— Classify and count vowels, consonants, and digits.- Data/Config files:
data.log,input1.txt,input2.txt,item.csv,product.json,products.json,text - Folders:
module 5/,module 6/,module 7/
Files and short descriptions:
datetime basics.py— DateTime module basics (date, time, timedelta).Public Private and Encapsulation.py— Encapsulation and public/private access patterns in OOP.- Folders:
CASE STUDY/— Real-world case study projects,Real-World Use Cases DateTime/— DateTime practical applications.
Files and short descriptions:
Employee + SQL.py— Employee management with SQL integration.Employee.py— Employee class and management operations.Flask basic.py— Introduction to Flask web framework basics.Sir Code.py— Example or reference code provided by instructor.
Django