A collection of Python programs to print various number, star, and character patterns using loops. Solved as part of practice for strengthening logic-building and nested loop concepts.
This repository contains solutions to common pattern-printing problems in Python β a classic exercise for mastering for and while loops, nested iteration, and conditional logic.
- Star patterns (triangle, pyramid, inverted pyramid, diamond)
- Number patterns (Pascal's triangle, Floyd's triangle)
- Character/alphabet patterns
- Hollow shapes (square, triangle, diamond)
- Mixed patterns (numbers + stars)
- Python 3.x
- Jupyter Notebook
- Clone the repository:
git clone https://github.com/Nitesh2417/Python_assignment_1.git- Open
Pattern.ipynbin Jupyter Notebook or VS Code. - Run each cell to see the pattern outputs.