0

Please i need someone to help me explain this code from line 1 to the last line. I just came across it but i don't understand it

def pascals_triangle (number): for i in range (number+1): a= " " for j in range (number-i): a=a + " " for k in range (i): a=a + "3" Print (a) pascals_triangle (5) Results: 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3

5th Apr 2020, 3:42 PM
Okonkwo Emeka
1 Réponse
+ 1
You've already posted this question: https://www.sololearn.com/Discuss/2228275/?ref=app please don't duplicate your post just because you doesn't get any response as quickest as you want ^^
5th Apr 2020, 4:05 PM
visph
visph - avatar