Computer Science, asked by janvikaur766, 4 months ago

Write python code to draw following pattern:

4

3 4

2 3 4

1 2 3 4​

Answers

Answered by SP85
0

def pattern(n):

for i in range(1, n):

for j in range(1, i + 1):

print(j, end= " ")

print("&#92r")

pattern(5)

Is it ok

Similar questions