+ 1
How can I print this pattern using nested for loop ?
. * ** *** **** *** ** * Can someone explain the code clear please?â¨
1 Answer
+ 1
Something like this?
for j in range(1,5):
print ((4-j)*" "+"*"*j)
for k in range(3,0,-1):
print("*"*k)
if you don't understand the code you can ask me but it's pretty basic given you have a good understanding of for loop in python.