Python 4.7 : Exercise : Making a staircase
We will continue our learning and here we do an exercise, the goal of the exercise is to make a staircase of 4 steps with 50 pixels in width and 50 pixels in length, you can see that it starts here, with this width of 50 pixels and we have this length of 50 pixels and it comes ... end here with this width of 50, so we'll come back in a few minutes for the correction We're going to start the correction and I'm going to put the code here I'm going to start with a t point forward of 50 pixels, I run my code, you can see that the arrow goes through well. And then I'm going to make a t point right angle of 90 pixels I make a t point back ward of 50 pixels I run my code and you see that it works I'm going to make a t point left t point left of 50 pixels forward of 50 pixels you see that it works with a t point right of 90 a t point backward of 50 a t point left of 90 t point forward of 50 and I launch my code so we have a step two, three there remains a step then I'll make a t point right of 90 a t point back ward of 50 pixels and a t point left of 90 a t point forward of 50 pixels, I launch again you see that we have our staircase, which starts here and ends here Well that was all for this exercise, we'll see you soon for the next exercise concerning the drawing of a square.