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

Assignment 8_Nested loop_Patterns

The document provides a series of assignments for a Python script that involves drawing various patterns using loops. Each pattern requires the user to input the number of rows, and the patterns include stars, numbers, letters, and symbols. The assignment is intended for students in XI Computer Science at Mayoore School Ajmer.

Uploaded by

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

Assignment 8_Nested loop_Patterns

The document provides a series of assignments for a Python script that involves drawing various patterns using loops. Each pattern requires the user to input the number of rows, and the patterns include stars, numbers, letters, and symbols. The assignment is intended for students in XI Computer Science at Mayoore School Ajmer.

Uploaded by

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

MAYOOR SCHOOL AJMER

XI Computer Science / Assignment 8

Write the python script to draw the following patterns based on loops. Fetch the number of rows from the user
in all the questions.

(a) * * * * * * (b) * (c) 1 (d) 1


****** ** 22 2 3
****** *** 333 4 5 6
****** **** 4444 7 8 9 10
****** ***** 55555 11 12 13 14 15
(e) 1 (f) A (g) A (h) $ $ $ $ $
1 2 BB AB $$$$
1 2 3 CCC ABC $$$
1 2 3 4 DDDD ABCD $$
1 2 3 4 5 E EEEE ABCDE $
(i) $ $ $ $ $ $ (j) @ (k) & & & & & & (l) @
$$$$$ @@ &&&&& @@@
$$$$ @@@ &&&& @@@@@
$$$ @@@@ &&& @@@@@@@
$$ @@@@@ && @@@@@@@@@
$ @@@@@@ &

MAYOOR SCHOOL AJMER


XI Computer Science / Assignment 8

Write the python script to draw the following patterns based on loops. Fetch the number of rows from the user
in all the questions.

(a) * * * * * * (b) * (c) 1 (d) 1


****** ** 22 2 3
****** *** 333 4 5 6
****** **** 4444 7 8 9 10
****** ***** 55555 11 12 13 14 15
(e) 1 (f) A (g) A (h) $ $ $ $ $
1 2 BB AB $$$$
1 2 3 CCC ABC $$$
1 2 3 4 DDDD ABCD $$
1 2 3 4 5 E EEEE ABCDE $
(i) $ $ $ $ $ $ (j) @ (k) & & & & & & (l) @
$$$$$ @@ &&&&& @@@
$$$$ @@@ &&&& @@@@@
$$$ @@@@ &&& @@@@@@@
$$ @@@@@ && @@@@@@@@@
$ @@@@@@ &

You might also like