I am creating a program where i am inserting a pyramid into a pyramid of height h. However, my code seems to be lacking

前端 未结 0 687
抹茶落季
抹茶落季 2020-12-09 17:55

This is my working code. I want to use pure iteration in this that\'s why I purposely didn\'t use array and strings:

def print_triangles(h):
    base = 2 * h          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题