🔗 View the Python Pattern Drawing Code
A simple Python program that allows users to generate various patterns, including triangles, squares, diamonds, pyramids, and more. The patterns are displayed in colorful outputs using the Colorama library and can be saved to a file.
- Generate patterns like:
- Right-angled Triangle
- Square with Hollow Center
- Diamond
- Left-angled Triangle
- Hollow Square
- Pyramid
- Reverse Pyramid
- Rectangle with Hollow Center
- Save patterns to a
pattern.txt
file. - User-friendly menu with restart and exit options.
- Python 3.x
- Colorama library (
pip install colorama
)
- Clone the repository or copy the script.
- Install the required library:
pip install colorama
- Run the program:
python pattern_drawing.py
- Follow the menu to generate and save patterns. 🎨
Enjoy creating colorful patterns! ✨