PyMel_Intro_02

import pymel.core as pm

# These are variables
steps = 5
posY = 0.5
posZ = 0

# This is a type of loop
while (steps > 0):
    pm.polyCube(width=4)
    pm.move(0, posY, posZ)
    steps -= 1
    posY += 1
    posZ -= 1