Need help compliting the pyramid | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Need help compliting the pyramid

How do i substract string?

16th Apr 2020, 8:47 PM
עומר גניש
2 Answers
I need somehow using while loop to complete this to a sideway pyramid.
16th Apr 2020, 8:48 PM
עומר גניש
using your code:- def play(pyramid_length): r = "*" while len(r) <= pyramid_length: print( r += "**" play(int(input("enter pyramid length: ")))
16th Apr 2020, 9:56 PM
rodwynnejones - avatar