DEV Community

Ashok Kumar
Ashok Kumar

Posted on

πŸš€ My Python Practice – Day 1

βœ… 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

Top comments (1)

Collapse
 
yaldakhoshpey profile image
Yalda Khoshpey

✨so nice