Now instead of clicking four times to draw a square , Is there any shortcut to repeat the steps? Yes, It can be done by Variables. Variables are used to store numbers or characters are stored which can be varied.
It can be x , y , myvariable or in any name. It stores the value the user gives and it can be changed later. In Scratch, you can click on the variable tab in the left corner pane to access the new or default variable.
Note: Pen up is not used to draw