0% found this document useful (0 votes)
1 views

Assignment-03(Patterns)

Gddedee

Uploaded by

onkarghorpade18
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Assignment-03(Patterns)

Gddedee

Uploaded by

onkarghorpade18
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Velocity Corporate Training Center, Pune

Topics: Loops in Python


Write‌‌a‌‌Python‌‌Programs‌‌to‌‌print‌‌below‌‌Pattern:‌‌

1.
*‌‌‌
*‌‌*‌‌‌
*‌‌*‌‌*‌‌‌
*‌‌*‌‌*‌‌*‌‌‌
*‌‌*‌‌*‌‌*‌‌*‌‌‌
2.
‌*‌‌‌
*‌ ‌‌*‌‌‌
‌*‌‌*‌‌*‌‌‌
‌*‌‌*‌‌*‌‌*‌‌‌
*‌‌*‌‌*‌‌*‌‌*‌‌‌
3. ‌
‌*‌‌‌
‌*‌‌*‌‌‌
‌*‌‌*‌‌*‌‌‌
‌*‌‌*‌‌*‌‌*‌‌‌
*‌‌*‌‌*‌‌*‌‌*‌‌‌

4. * * * * * * * * *
*******
*****
***
*

5. 1‌‌‌
1‌‌2‌‌‌
1‌‌2‌‌3‌‌‌
1‌‌2‌‌3‌‌4‌‌‌
1‌‌2‌‌3‌‌4‌‌5‌‌‌

6. 1‌‌‌
2‌‌3‌‌‌
4‌‌5‌‌6‌‌‌
7‌‌8‌‌9‌‌10‌‌‌
11‌‌12‌‌13‌‌14‌‌15‌‌‌
7. Pascal’s Triangle
1
11
121
1331
14641
8.
1‌‌‌
2‌‌3‌‌‌
4‌‌5‌‌6‌‌‌
7‌‌8‌‌9‌‌10‌‌‌
11‌‌12‌‌13‌‌14‌‌15‌‌‌


9.
A‌ ‌[Use‌‌ASCII‌‌Values]‌‌
B‌‌B‌‌‌
C‌‌C‌‌C‌‌‌
D‌‌D‌‌D‌‌D‌‌‌
E‌‌E‌‌E‌‌E‌‌E‌‌‌

10.
A‌‌‌
B‌‌C‌‌‌
D‌‌E‌‌F‌‌‌
G‌‌H‌‌I‌‌J‌‌‌
K‌‌L‌‌M‌‌N‌‌O‌‌‌
11.
K
KK
KKK
KKKK
KKKKK

12.
A‌‌‌
A B‌‌‌
A B‌‌C
A B‌‌C ‌‌D
A B‌‌C ‌‌D E


13.
P
Py
Pyt
Pyth
Pytho
Python

14.
1‌‌1‌‌1‌‌1‌‌1‌‌‌
2‌‌2‌‌2‌‌2‌‌‌
3‌‌3‌‌3‌‌‌
4‌‌4‌‌‌
5‌‌

15.
666666
55555
4444
333
22
1

16.
012345
01234
0123
012
01

17.
1
234
56789

18.
654321
54321
4321
321
21
1
19.
1
33
555
7777
99999

20. 1
12
123
1234
12345

21.
12345
22345
33345
44445
55555

22.
1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
6 12 18 24 30 36
7 14 21 28 35 42 49

23. ‌ ‌‌‌
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‌‌
24.
*
**
***
****
*****
******
*******
*******
******
*****
****
***
**
*

25.

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

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

You might also like