+ 1

can someone take a look and help me with my code please

Write a program that uses two separate nested loops to draw this pattern. My code: https://code.sololearn.com/cStaNhBmmNvX/#py i = 0 u = 0 print("first nested loop") while i < 7: print("*", end='') j = 0 while j < i: print("*", end='') j += 1 print("*", end='') print() i = i + 1 print("second nested loop") while u > 7: print("*", end='') y = 0 while y < i: print("*", end='') y += 1 print("*", end='') print() u = u + 1

17th Nov 2020, 11:38 PM
...
... - avatar
2 odpowiedzi
+ 1
i = 1 print("first nested loop") while i < 8: j = 0 while j < i: print("*", end='') j += 1 print() i += 1 print("second nested loop") while i > 1: y = 1 while y < i: print("*", end='') y += 1 print() i -= 1
18th Nov 2020, 12:12 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
ChaoticDawg , Thank you!!
18th Nov 2020, 12:37 AM
...
... - avatar