Need help compliting the pyramid | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Need help compliting the pyramid

How do i substract string? https://code.sololearn.com/cRDKV33Rf8MT/?ref=app

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