πŸš€ My Python Practice – Day 1



This content originally appeared on DEV Community and was authored by Ashok Kumar

✅ Topics Covered Today

🔹 1. Fibonacci Sequence

Using while loop

Using for + range

Recursion method

Memoization (efficient recursion)

🔹 2. Palindrome Programs

String palindrome check (using slicing)

Number palindrome check (without converting to string)

🔹 3. Multiplication Tables

Single table (for loop)

Nested loop β†’ 1 to 10 tables

Side-by-side matrix style (like a grid)

🔹 4. Star Patterns (nested loops)

Right angled triangle

Inverted triangle

Pyramid & Diamond

Hollow square —

✨ Key Learnings Today

Difference between for and while

Usage of range(start, stop, step)

Nested if for multiple conditions

Nested loops for grids and star patterns


This content originally appeared on DEV Community and was authored by Ashok Kumar