0% found this document useful (0 votes)
8 views1 page

Class 7 Patterns

The document outlines a Class 7 lesson plan for June focused on creating triangular patterns in Python, including both normal and inverted patterns. It provides classwork examples using loops to print numbers and symbols in a triangular format. Additionally, it includes homework assignments for students to practice these concepts.

Uploaded by

Anik Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Class 7 Patterns

The document outlines a Class 7 lesson plan for June focused on creating triangular patterns in Python, including both normal and inverted patterns. It provides classwork examples using loops to print numbers and symbols in a triangular format. Additionally, it includes homework assignments for students to practice these concepts.

Uploaded by

Anik Dutta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Class 7

(Month of June)
Python: Triangular patterns (Normal & Inverted)

Classwork:

1 1 #
12 11 ##
123 222 ###

for i in range(1,4,1): for i in range(1,4,1): for i in range(1,4,1):


for j in range(1,i+1,1): for j in range(1,i+1,1): for j in range(1,i+1,1):
print(j,end="") print(i,end="") print(“#”,end="")
print() print() print()

1234 111 ****


123 22 ***
12 3 **
1 *
for i in range(1,4,1): for i in range(4,0,-1):
for i in range(4,0,-1): for j in range(4,i,-1): for j in range(1,i+1,1):
for j in range(1,i+1,1): print(i,end="") print("*",end="")
print(j,end="") print() print()
print()

Homework:
222 12345
22 1234
2 123
12
1

You might also like