Nested for loop

Please write a code for printing this:
image

3 Likes

for i in range(8):
for j in range(9):
if i==0 and j==0:
print(" ",end = " ")
elif i==0:
print(j,end = " ")
elif j==0:
print(i,end = " ")
else:
print(ā€œSā€,end = " ")

print()
3 Likes

Thankyou mam:)

2 Likes