Microsoft MakeCode

How can I place a stair upside down using code?

How can I place a stair upside down using code?

height=10

width=2

blk=131228

agent.teleport(pos(0,0,0), SOUTH)

for i in range(height):

blocks.place(blk,agent.get_position()) 

for j in range(width-1):

    agent.move(LEFT,1)

    blocks.place(blk,agent.get_position())

agent.move(UP, 1)

agent.move(FORWARD, 1)

agent.move(LEFT, -width+1)

another one

How can I place the stair like timage his?