Skip to content

This repository contains a collection of Python programs that generate different types of patterns using loops.

Notifications You must be signed in to change notification settings

imDarshanGK/Pattern-program-in-Python

Repository files navigation

Pattern Program in Python

This repository contains a collection of pattern programs written in Python. These programs demonstrate different types of patterns that can be created using loops in Python. It covers a variety of patterns, ranging from basic ones like triangles and squares to more complex ones like pyramids and diamond shapes.

Table of Contents

Introduction

This repository is designed to provide Python code examples for generating various patterns. It can be helpful for beginners to practice and understand how loops work in Python and how they can be used to print different shapes and designs.

Features

  • A wide variety of pattern programs using loops.
  • Easy-to-understand code with comments for beginners.
  • Code examples demonstrating different logic like nested loops, conditionals, etc.

Programs List

The following pattern programs are included in this repository:

  1. Square Pattern – Prints a square using * or any other character.
  2. Right-Angled Triangle – Prints a triangle where each line has an increasing number of * characters.
  3. Pyramid Pattern – Prints a pyramid shape using spaces and * symbols.
  4. Diamond Pattern – Prints a symmetrical diamond pattern.
  5. Inverted Triangle – A right-angled triangle printed in reverse.
  6. Number Patterns – Programs that print patterns using numbers (like Pascal’s Triangle).
  7. Alphabet Patterns – Pattern programs using alphabets in a variety of shapes.
  8. Hollow Square – A square where the inside is hollow but the edges are filled with *.

...and many more! Check out the individual files for specific implementations.

About

This repository contains a collection of Python programs that generate different types of patterns using loops.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages