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

Ashok Kumar | Sciencx (2025-08-26T10:11:10+00:00) ๐ My Python Practice โ Day 1. Retrieved from https://www.scien.cx/2025/08/26/%f0%9f%9a%80-my-python-practice-day-1/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.