25+ Best Pattern Programs in Python for Class 11

Share with others

pattern programs in python
Pattern Programs in Python

Pattern Programs in Python

Q1. Write a program in Python to print the following pattern

a)

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

b)

5 4 3 2 1

5 4 3 2

5 4 3

5 4

5

c)

5 5 5 5 5

4 4 4 4

3 3 3

2 2

1

d)

1 2 3 4 5

1 2 3 4

1 2 3

1 2

1

e)

1

2 2

3 3 3

4 4 4 4

5 5 5 5 5

pattern programs in python
Pattern Programs in Python

Pattern Programs in Python

f)

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

g)

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

h)

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

i)

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

j)

        1    
           2 1  
       3 2 1 
    4 3  2  1 
 5 4 3  2  1
pattern programs in python
Pattern Programs in Python

Pattern Programs in Python

k)

1

2 1

3 2 1

4 3 2 1

5 4 3 2 1

l)

1

2 3

4 5 6

7 8 9 10


m)

1

2 3 4

5 6 7 8 9



n)

0  

0 1  

0 2 4  

0 3 6 9  

0 4 8 12 16  

o)

0
0 1
0 1 4
0 1 4 9
0 1 4 9 16

Pattern Programs in Python

p)

1
4 4
9 9 9
16 16 16 16
25 25 25 25 25

q)

1
3 3
5 5 5
7 7 7 7
9 9 9 9 9

r)

*
*   *
*   *   *
*   *   *   *
*   *   *   *   *

s)

*   *   *   *   *
*   *   *   *
*   *   *
*   *
*

t)

          *
        * *
      * * *
    * * * *
  * * * * *         

Pattern Programs in Python

u)

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

v)

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

w)

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

x)

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

y)

           *  
        * * * 
      * * * * *  
   * * * * * * *
 
 

Pattern Programs in Python

z)

flow-of-control-in-python-class-11
Pattern Programs in Python

Pattern Programs in Python

aa)

p
p y
p y t
p y t h
p y t h o
p y t h o n


ab)

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

Pattern Programs in Python

Disclaimer : I tried to give you the correct code of ” Pattern Programs in Python , but if you feel that there is/are mistakes in ” Pattern Programs in Python ” given above, you can directly contact me at csiplearninghub@gmail.com. Book and Study material available on CBSE official website are used as a reference to create above “ Pattern Programs in Python “.

Pattern Programs in Python


Important Links

100 Practice Questions on Python Fundamentals

120+ MySQL Practice Questions

90+ Practice Questions on List

50+ Output based Practice Questions

100 Practice Questions on String

70 Practice Questions on Loops

120 Practice Questions of Computer Network in Python

70 Practice Questions on if-else

40 Practice Questions on Data Structure

Class 12 Computer Science Sample Paper 2020-2021.

Class 12 Computer Science Sample Paper Marking Scheme

Class 12 Computer Science Test Series


Share with others

Leave a Reply

error: Content is protected !!