Skip to content

R-Ganesh28/Python-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

88 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Practice – 30 Days of Code πŸ’»πŸ”₯

This repository contains my daily Python learning journey from scratch to advanced developer.
My goal is to become a software developer at a top company like Google, Microsoft, etc.


βœ… Daily Progress

πŸ“… Day 1 – Basics

  • Learned Python syntax, variables, input/output
  • Practiced:
    • Find max element in list
    • Reverse a list
    • Sum of array elements

πŸ“… Day 2 – Conditions, Loops, Arrays

  • Practiced if-else, for, range()
  • Solved:
    • Count even & odd numbers
    • Find second largest number
    • Check if array is sorted
  • πŸ“€ Code pushed to GitHub

πŸ“… Day 3 – Functions & Strings

  • Learned to define and return from functions
  • Practiced string methods like strip(), lower(), replace()
  • Solved:
    • Vowel Counter
    • Palindrome Checker
    • Duplicate Elements in List

πŸ“… Day 4 – List, Dictionary, Search

  • Learned:
    • List & Dictionary methods
  • Solved:
    • Linear Search
    • Binary Search
    • Frequency counter using dictionary

πŸ“… Day 5 – Sorting Algorithm

  • Solved:
    • Bubble Sort
    • Selection Sort
    • Insertion Sort

πŸ“… Day 6 – Recursion and Patterns

  • Learned:
    • Recursions
  • Solved:
    • Recursive problems: factorial, fibonacci, sum of array, sum of digits, palindrome check
    • Printed patterns: right-angled, inverted, and number triangle

πŸ“… Day 7 – File Handling, Strings, and Word Count

  • Learned:
    • File Handling and String Manipulation
  • Solved:
    • Reversed strings, counted words, detected anagrams
    • Performed read/write/append using Python file handling
    • Fully working .txt based data operation

πŸ“… Day 8 – Object-Oriented Programming

  • Learned:
    • Class, Object, Constructor
    • Inheritance, Encapsulation, Polymorphism
  • Solved:
    • Created and printed class objects
    • Method overriding using inheritance
    • Used private variables via getter/setter
    • Demonstrated polymorphism with multiple classes
    • Built a Bank App with deposit, withdraw, and balance check

πŸ“… Day 09 – Functional Programming

  • Learned:
    • Lambda, map, filter, reduce
    • Comprehensions, zip, enumerate
    • Nested Functions
  • Solved:
    • Map & filter with lambda
    • Reduce to sum elements
    • List & dict comprehension
    • Used zip, enumerate
    • Created multiplier with nested function

πŸ“… Day 10 – Exception Handling & File I/O

  • Learned:
    • try, except, else, finally
    • Custom exceptions
    • File read, write, append using with open()
  • Solved:
    • Handled ZeroDivisionError and ValueError
    • Demonstrated all 4 blocks (try, except, else, finally)
    • Created custom exception for age check
    • Handled file not found error
    • Counted lines in a file
    • Performed write β†’ append β†’ read operations

πŸ“… Day 11 – Built-in Modules (math, random, datetime, calendar)

  • Learned:
    • Math operations using math module
    • Random number generation and list shuffle
    • Current date, time, and formatting with datetime
    • Printed full year calendar using calendar
  • Solved:
    • Calculated sqrt, ceil, floor, factorial, and power
    • Generated random numbers and choices
    • Displayed and formatted date/time
    • Printed calendar for the year 2025

πŸ“… Day 12 – JSON, CSV & OS Module

  • Learned:
    • Read/write JSON using json.dump() & json.load()
    • Create and read CSV files with csv.writer() & csv.reader()
    • Performed OS operations: list files, create folders, rename & delete files
  • Solved:
    • Stored and updated data in JSON
    • Created and printed rows from CSV
    • Listed directory contents using os
    • Renamed and deleted files programmatically

πŸ“… Day 13 – Regular Expressions (Regex)

  • Learned:
    • Used re module for pattern matching
    • Applied search(), match(), findall(), sub()
  • Solved:
    • Checked if string contains digits
    • Extracted words from text
    • Validated email format
    • Replaced digits with underscores
    • Verified if string starts with a word

πŸ“… Day 14 – Python Modules & Packages

  • Learned:
    • Used built-in modules like math, datetime
    • Created custom module with add() and sub()
    • Built a package mypackage with reusable functions
  • Solved:
    • Used custom and built-in functions together
    • Imported from separate modules and folders

πŸ” LeetCode Python Practice (Before DSA)

πŸ“… Day 01 – Arrays, Strings, Logic

βœ… Easy:

- Add Digit  
- Contains Duplicate  
- FizzBuzz  
- Remove Duplicates from Array  
- Reverse String  
- Single Number  
- Two Sum  
- Valid Palindrome  

βœ… Medium:

- Group Anagram  
- Maximum Subarray

πŸ“… Day 02 – Math & Array Set Operations

βœ… Easy:

- Fibonacci Number
- Find the Difference
- Intersection of Two Arrays

πŸ“… Day 03 – Math, Bitwise & String Operations

βœ… Easy:

- Valid Anagram
- Factorial Trailing Zeroes
- Power of Two

πŸ“… Day 04 – Math, Array Shifts, Frequency Maps

βœ… Easy:

- Power of Three
- Move Zeroes

βœ… Medium:

- Top K Frequent Elements

πŸ“… Day 05 – String Manipulation & Number Logic

βœ… Easy:

- Armstrong Number
- Remove Vowels from String

πŸ“… Day 06 – Vowel Reversal & Character Count

βœ… Easy:

- Reverse Vowels of a String
- Count Camel Case Characters

πŸ“… Day 07 – Substring Matching & Prefix Detection

βœ… Easy:

- Implement strStr()
- Longest Common Prefix

πŸ“… Day 08 – Array Two Pointer Logic

βœ… Easy:

- Merge Sorted Array
- Squares of a Sorted Array

πŸ“… Day 09 – Two Pointers: Advanced Edition

βœ… Easy/Medium:

- Two Sum II – Input Array is Sorted
- Minimum Size Subarray Sum

πŸ“… Day 10 – Sum Logic & Sliding Window

βœ… Easy:

- Check If N and Its Double Exist
- Maximum Average Subarray I

πŸ“… Day 11 – Prefix Sum & Binary Search

βœ… Easy:

- Find Pivot Index
- Binary Search

πŸ“… Day 12 – Binary Search & Prime Numbers

βœ… Easy:

- Search Insert Position

βœ… Medium:

- Count Primes

πŸ“… Day 13 – Math & Frequency Logic

βœ… Easy:

- Smallest Even Multiple
- Most Frequent Even Element

πŸ“… Day 14 – Math & Bitwise Edge Cases

βœ… Medium:

- Divide Two Integers
- Reverse Integer

πŸ“… Day 15 – Power & Multiplication

βœ… Easy/Medium:

- Multiply Strings
- Pow(x, n)

πŸ“… Day 16 – String Basics

βœ… Easy:

- Roman to Integer
- Length of Last Word

πŸ“… Day 17 – Math: Square Root Logic

βœ… Easy:

- Sqrt(x)
- Valid Perfect Square

πŸ“… Day 18 – Digit by Digit Addition

βœ… Easy:

- Add to Array-Form of Integer
- Add Strings

πŸ“… DSA Day 01 – Arrays & Patterns

βœ… Completed:

  • Two Pointer Technique – GeeksForGeeks..

πŸ“š Learning Next:

  • Sliding Window Technique
  • Kadane's Algorithm
  • Prefix Sum

πŸ› οΈ Tools Used

  • Python 3.12
  • GitHub
  • VS Code

🧭 30 Days Tracker

  • Day 1
  • Day 2
  • Day 3
  • Day 4
  • Day 5
  • Day 6
  • Day 7
  • Day 8
  • Day 9
  • Day 10
  • Day 11
  • Day 12
  • Day 13
  • Day 14
  • Day 1 - LeetCode Practice(Before DSA)
  • Day 2 - LeetCode Practice(Before DSA)
  • Day 3 - LeetCode Practice(Before DSA)
  • Day 4 - LeetCode Practice(Before DSA)
  • Day 5 - LeetCode Practice(Before DSA)
  • Day 6 - LeetCode Practice(Before DSA)
  • Day 7 - LeetCode Practice(Before DSA)
  • Day 8 - LeetCode Practice(Before DSA)
  • Day 9 - LeetCode Practice(Before DSA)
  • Day 10 - LeetCode Practice(Before DSA)
  • Day 11 - LeetCode Practice(Before DSA)
  • Day 12 - LeetCode Practice(Before DSA)
  • Day 13 - LeetCode Practice(Before DSA)
  • Day 14 - LeetCode Practice(Before DSA)
  • Day 15 - LeetCode Practice(Before DSA)
  • Day 16 - LeetCode Practice(Before DSA)
  • Day 17 - LeetCode Practice(Before DSA)
  • Day 18 - LeetCode Practice(Before DSA)
  • DSA Day 01 – Started Arrays & Patterns | Completed Two Pointers (GFG)
  • DSA Day 01 - Started Arrays & Patterns (Coming up πŸ”₯)

πŸš€ Goal

Build strong DSA + Python + Project skills to crack FAANG-level jobs by consistent daily practice πŸ’―

About

Daily DSA, OOP, and Mini Projects using Python – Goal: Become Google-Level Dev πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages