This repository is a hands-on collection of Python and JavaScript practice files covering core programming concepts, object-oriented programming, array/list algorithms, DOM manipulation, and LeetCode problem solutions. It tracks learning progress from fundamentals through to advanced OOP patterns and coding challenges.
python-learning/
├── Python Scripts (root) # Core Python exercises & algorithms
├── JavaScript Scripts (root) # JS fundamentals & DOM exercises
├── Web Files (root) # HTML & CSS files
├── OOPS/ # OOP inheritance deep-dive
└── Leetcode/ # LeetCode problem solutions
- Python — Core Exercises
- Python — Array & List Algorithms
- Python — OOP (OOPS folder)
- JavaScript — Fundamentals
- Web — HTML & CSS
- LeetCode Solutions
| File | Description |
|---|---|
| common_elements.py | Find common elements between two lists |
| dunder.py | Dunder (magic) methods in Python |
| employee.py | Employee class — OOP basics (class, attributes, methods) |
| finding_element_index.py | Find the index of an element in a list |
| guess_game.py | Number guessing game using a while loop |
| list_operations_demo.py | Demo of common list operations |
| merge_two_list.py | Merge two lists into one |
| missing_number.py | Find the missing number in a sequence |
| remove_duplicates.py | Remove duplicate values from a list |
| second_largest_element.py | Find the second largest element in a list |
| sort Array.py | Sort an array |
| sum_of_elements.py | Calculate the sum of list elements |
| swap_without_temp.py | Swap two variables without a temporary variable |
| without_moduler.py | Check odd/even without the modulo operator |
| Move All Zeros to the End.py | Move all zeros to the end of an array |
| File | Description |
|---|---|
| sliding_window_sum.py | Sliding window sum of a fixed-size window |
| max_sliding_window_sum.py | Maximum sum using the sliding window technique |
| max_subarray_sum_length4.py | Maximum subarray sum of length 4 |
| File | Description |
|---|---|
| single_inheritence.py | Single inheritance example |
| python_multi_level_inheritance.py | Multi-level inheritance |
| practice_multilevel_inheritence.py | Practice: multi-level inheritance |
| multiple_inheritence_example.py | Multiple inheritance basics |
| multiple_inheritence_example1.py | Multiple inheritance — example 2 |
| practice_multiple_inheritence.py | Practice: multiple inheritance |
| python_multiple_inheritance_demo.py | Full demo of multiple inheritance |
| multiple_and_multilevel_inheritance.py | Combined multiple & multilevel inheritance |
| hierarchical_inheritence.py | Hierarchical inheritance |
| hybrid_inheritence.py | Hybrid inheritance |
| hybrid_inheritence_example1.py | Hybrid inheritance — example with diagram comments |
| method_overriding_function.py | Method overriding |
| super_function_example.py | Using super() in inheritance |
| is_sub_class_function.py | issubclass() and isinstance() built-in functions |
| Product_of_array.py | Product of array elements (algorithm practice) |
| Increasing_Triplet_Subsequence.py | Increasing triplet subsequence (algorithm practice) |
| File | Description |
|---|---|
| first.js | First JavaScript program |
| functions.js | Function declarations and expressions |
| function_call.js | Calling functions |
| function_test.js | Function testing examples |
| multiple_return.js | Functions with multiple return values |
| wrong_function.js | Common function mistakes and fixes |
| arrays.js | Array basics |
| array_length.js | Array length property |
| append.js | Appending elements to arrays/DOM |
| loop.js | Loop basics |
| while.js | While loop examples |
| else_with_while.js | Using else with while loops |
| for_in.js | for...in loop |
| odd_or_even.js | Odd or even check |
| Access_object_value.js | Accessing object properties |
| Dom.js | DOM manipulation |
| script.js | General script examples |
| test.js | Test / scratch file |
| prompt_version.js | Using prompt() for user input |
| prompt_without_paras.js | prompt() without parameters |
| using_prompt_inside_function.js | prompt() inside a function |
| undeclared_version.js | Undeclared variables and var/let/const scoping |
| File | Description |
|---|---|
| index.html | Main HTML page |
| new.html | Additional HTML page |
| style.css | Stylesheet |
| File | Problem | Topic |
|---|---|---|
| Leetcode/Leetcode_283.py | #283 — Move Zeroes | Array, Two Pointers |
| Leetcode/leetcode_605.py | #605 — Can Place Flowers | Array, Greedy |