+ 1

How can I print this pattern using nested for loop ?

. * ** *** **** *** ** * Can someone explain the code clear please?✨

10th Jan 2021, 10:42 PM
WALEED BENSUMAIDEA
WALEED BENSUMAIDEA - avatar
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.
10th Jan 2021, 11:19 PM
Abhay
Abhay - avatar