[go: up one dir, main page]

0% found this document useful (0 votes)
33 views5 pages

Loop Statement

The document describes 18 different numeric patterns that can be generated using Python code. It includes patterns like simple number triangles, inverted and regular pyramids, mirrored triangles, stars patterns, and more. It also provides examples of Python code that could be used to generate some of the patterns.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views5 pages

Loop Statement

The document describes 18 different numeric patterns that can be generated using Python code. It includes patterns like simple number triangles, inverted and regular pyramids, mirrored triangles, stars patterns, and more. It also provides examples of Python code that could be used to generate some of the patterns.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Pattern #1: Simple Number Triangle Pattern

2 2

3 3 3

4 4 4 4

5 5 5 5 5

Pattern #2: Inverted Pyramid of Numbers

1 1 1 1 1

2 2 2 2

3 3 3

4 4

Pattern #3: Half Pyramid Pattern of Numbers

1 2

1 2 3

1 2 3 4

1 2 3 4 5

Pattern #4: Inverted Pyramid of Descending Numbers

5 5 5 5 5

4 4 4 4

3 3 3

2 2

Pattern #5: Inverted Pyramid of the Same Digit

5 5 5 5 5

5 5 5 5

5 5 5

5 5

5
Pattern #6: Reverse Pyramid of Numbers

2 1

3 2 1

4 3 2 1

5 4 3 2 1

Pattern #7: Inverted Half Pyramid Number Pattern

0 1 2 3 4 5

0 1 2 3 4

0 1 2 3

0 1 2

0 1

Pattern #8: Pyramid of Natural Numbers Less Than 10

2 3 4

5 6 7 8 9

Pattern #9: Reverse Pattern of Digits from 10

3 2

6 5 4

10 9 8 7

Pattern #10: Unique Pyramid Pattern of Digits

1 2 1

1 2 3 2 1

1 2 3 4 3 2 1

1 2 3 4 5 4 3 2 1

Pattern #11: Connected Inverted Pyramid Pattern of Numbers

5 4 3 2 1 1 2 3 4 5
5 4 3 2 2 3 4 5

5 4 3 3 4 5

5 4 4 5

5 5

Pattern #12: Even Number Pyramid Pattern

10

10 8

10 8 6

10 8 6 4

10 8 6 4 2

Pattern #13: Pyramid of Horizontal Tables

0 1

0 2 4

0 3 6 9

0 4 8 12 16

0 5 10 15 20 25

0 6 12 18 24 30 36

Pattern #14: Pyramid Pattern of Alternate Numbers

3 3

5 5 5

7 7 7 7

9 9 9 9 9

Pattern #15: Mirrored Pyramid (Right-angled Triangle) Pattern of Numbers

1 2

1 2 3

1 2 3 4

1 2 3 4 5
Pattern #16: Equilateral Triangle with Stars (Asterisk Symbol)

* *

* * *

* * * *

* * * * *

* * * * * *

* * * * * * *
Pattern #17: Downward Triangle Pattern of Stars

* * * * * *

* * * * *

* * * *

* * *

* *

Pattern #18: Pyramid Pattern of Stars

* *

* * *

* * * *

* * * * *

Python 3.x code to demonstrate star pattern

A
B B
C C C
D D D D
E E E E E

Python 3.x code to demonstrate star pattern

A
B C
D E F
G H I J
K L M N O
Python 3.x code to demonstrate star pattern

1
2 1
4 2 1
8 4 2 1
16 8 4 2 1
32 16 8 4 2 1
64 32 16 8 4 2 1
128 64 32 16 8 4 2 1

Python 3.x code to demonstrate star pattern

1
1 2 1
1 2 4 2 1
1 2 4 8 4 2 1
1 2 4 8 16 8 4 2 1
1 2 4 8 16 32 16 8 4 2 1
1 2 4 8 16 32 64 32 16 8 4 2 1
1 2 4 8 16 32 64 128 64 32 16 8 4 2 1

Print Fabonacci Series

Print Armstrong number

Print Pallindrome number

*** Repeat the same through While loop also

You might also like