I have successfully created a code to print a horizontally flipped triangle using a while loop. Now although it works, I was wondering if i could simplify this i.e. without usin
Essentially, you still need to keep track of which row you're on and just do a little more math to see how many *'s and " "'s there should be. Hope this helps.
myLen = 5
i = 1
while myLen >= i:
print( ("*" * i).rjust(myLen) )
i += 1