Triângulo de ângulo reto em Python

for i in range(0,x+1):
    print(" "*(x-i),end="")
    for j in range(0+i):
        print("#",end="")
    print()
    
    
   #
  ##
 ###
####
android developer