0:00:00.320,0:00:03.740 One thing that computers are really good[br]at is repeating commands. 0:00:03.740,0:00:08.170 As a person, you'd get really bored if you[br]had to do the same thing lots of times in a row. 0:00:08.170,0:00:08.809 0:00:08.809,0:00:12.849 But a computer can do the same thing[br]millions or even billions of times, 0:00:12.849,0:00:15.000 and not get bored and be able to carry[br]that out really well. 0:00:15.500,0:00:17.430 So for example if I wanted to wish 0:00:17.430,0:00:20.960 everyone on Facebook a happy birthday by[br]sending them an email, 0:00:20.960,0:00:24.850 it might take me more than a century to[br]actually write out all of those emails to everyone. 0:00:24.850,0:00:25.269 0:00:25.269,0:00:28.760 But with just a few lines of code, I can have[br]a system 0:00:28.760,0:00:32.229 send an email to everyone on Facebook[br]wishing them a happy birthday. 0:00:32.229,0:00:34.000 So that's what loops are, and why they're[br]valuable, 0:00:34.500,0:00:37.180 and something that computers can do very well. 0:00:37.180,0:00:40.550 In this example your goal is going to be[br]to move the bird 0:00:40.550,0:00:44.940 to get the pig. Now we're gonna be able to use the "repeat" block 0:00:44.940,0:00:49.210 in order to be able to do this very[br]easily. You can either do this by 0:00:49.210,0:00:52.219 giving the computer a "move forward"[br]command 0:00:52.219,0:00:57.079 five times in order to advance the bird[br]one step each time to the pig. 0:00:57.079,0:01:00.590 Or you can just tell the computer to[br]"move forward" once, 0:01:00.590,0:01:04.150 and then tell it to "repeat" that 5[br]times, and it will do the same thing. 0:01:04.150,0:01:08.280 So in order to do this you drag your[br]"move forward" command, 0:01:08.280,0:01:11.729 and then you put it inside the[br]"repeat" block. 0:01:11.729,0:01:16.200 And you can click on it and tell it how[br]many times you want to repeat the block 0:01:16.200,0:01:19.970 to tell it how many steps you want it to[br]take forward. Now one more thing is 0:01:19.970,0:01:23.540 you can put as many commands as you[br]want inside the "repeat" block. 0:01:23.540,0:01:26.909 So in this example you're telling it to[br]move forward and turn left, 0:01:26.909,0:01:30.970 which it will do five times. Alright good[br]job and have fun :-) 0:01:30.970,0:01:31.220