0:00:00.000,0:00:05.339 one thing that computers are really good 0:00:02.100,0:00:06.720 at is repeating commands as a person you 0:00:05.339,0:00:09.420 get really bored if you had to do the 0:00:06.720,0:00:11.250 same thing lots of times in a row but a 0:00:09.420,0:00:13.620 computer can do the same thing millions 0:00:11.250,0:00:14.790 or even billions of times and not get 0:00:13.620,0:00:15.630 bored and be able to carry that out 0:00:14.790,0:00:17.190 really well 0:00:15.630,0:00:19.980 so for example if I wanted to wish 0:00:17.190,0:00:21.960 everyone on facebook a happy birthday by 0:00:19.980,0:00:23.760 sending them an email it might take me 0:00:21.960,0:00:25.529 more than a century to actually write 0:00:23.760,0:00:27.779 out all of those emails to everyone but 0:00:25.529,0:00:30.330 with just a few lines of code i can have 0:00:27.779,0:00:32.040 a system send an email to everyone on 0:00:30.330,0:00:33.960 facebook wishing them a happy birthday 0:00:32.040,0:00:35.520 so that's what loops are and why they're 0:00:33.960,0:00:38.550 valuable and something that computers 0:00:35.520,0:00:42.390 can do very well in this example your 0:00:38.550,0:00:44.160 goal is going to be to move the bird now 0:00:42.390,0:00:45.960 we're going to be able to use the repeat 0:00:44.160,0:00:48.870 block in order to be able to do this 0:00:45.960,0:00:51.300 very easily you can either do this by 0:00:48.870,0:00:53.969 giving the computer and move forward 0:00:51.300,0:00:56.579 command five times in order to advance 0:00:53.969,0:00:59.340 the the bird one step each time to the 0:00:56.579,0:01:01.469 pig or you can just tell the computer to 0:00:59.340,0:01:03.329 move forward once and then tell it to 0:01:01.469,0:01:05.820 repeat that five times and it will do 0:01:03.329,0:01:08.700 the same thing so in order to do this 0:01:05.820,0:01:11.310 you drag your move forward command and 0:01:08.700,0:01:14.310 then you put it inside the repeat block 0:01:11.310,0:01:15.960 and you can click on it and tell it how 0:01:14.310,0:01:17.700 many times you want to repeat the block 0:01:15.960,0:01:20.490 to tell how many steps you wanted to 0:01:17.700,0:01:22.229 take forward now one more thing is you 0:01:20.490,0:01:23.880 can put as many commands as you want 0:01:22.229,0:01:25.740 inside the repeat block so in this 0:01:23.880,0:01:28.710 example your tongue it to move forward 0:01:25.740,0:01:35.689 and turn left which will do five times 0:01:28.710,0:01:35.689 alright good job and have fun