[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.00,0:00:05.34,Default,,0000,0000,0000,,one thing that computers are really good Dialogue: 0,0:00:02.10,0:00:06.72,Default,,0000,0000,0000,,at is repeating commands as a person you Dialogue: 0,0:00:05.34,0:00:09.42,Default,,0000,0000,0000,,get really bored if you had to do the Dialogue: 0,0:00:06.72,0:00:11.25,Default,,0000,0000,0000,,same thing lots of times in a row but a Dialogue: 0,0:00:09.42,0:00:13.62,Default,,0000,0000,0000,,computer can do the same thing millions Dialogue: 0,0:00:11.25,0:00:14.79,Default,,0000,0000,0000,,or even billions of times and not get Dialogue: 0,0:00:13.62,0:00:15.63,Default,,0000,0000,0000,,bored and be able to carry that out Dialogue: 0,0:00:14.79,0:00:17.19,Default,,0000,0000,0000,,really well Dialogue: 0,0:00:15.63,0:00:19.98,Default,,0000,0000,0000,,so for example if I wanted to wish Dialogue: 0,0:00:17.19,0:00:21.96,Default,,0000,0000,0000,,everyone on facebook a happy birthday by Dialogue: 0,0:00:19.98,0:00:23.76,Default,,0000,0000,0000,,sending them an email it might take me Dialogue: 0,0:00:21.96,0:00:25.53,Default,,0000,0000,0000,,more than a century to actually write Dialogue: 0,0:00:23.76,0:00:27.78,Default,,0000,0000,0000,,out all of those emails to everyone but Dialogue: 0,0:00:25.53,0:00:30.33,Default,,0000,0000,0000,,with just a few lines of code i can have Dialogue: 0,0:00:27.78,0:00:32.04,Default,,0000,0000,0000,,a system send an email to everyone on Dialogue: 0,0:00:30.33,0:00:33.96,Default,,0000,0000,0000,,facebook wishing them a happy birthday Dialogue: 0,0:00:32.04,0:00:35.52,Default,,0000,0000,0000,,so that's what loops are and why they're Dialogue: 0,0:00:33.96,0:00:38.55,Default,,0000,0000,0000,,valuable and something that computers Dialogue: 0,0:00:35.52,0:00:42.39,Default,,0000,0000,0000,,can do very well in this example your Dialogue: 0,0:00:38.55,0:00:44.16,Default,,0000,0000,0000,,goal is going to be to move the bird now Dialogue: 0,0:00:42.39,0:00:45.96,Default,,0000,0000,0000,,we're going to be able to use the repeat Dialogue: 0,0:00:44.16,0:00:48.87,Default,,0000,0000,0000,,block in order to be able to do this Dialogue: 0,0:00:45.96,0:00:51.30,Default,,0000,0000,0000,,very easily you can either do this by Dialogue: 0,0:00:48.87,0:00:53.97,Default,,0000,0000,0000,,giving the computer and move forward Dialogue: 0,0:00:51.30,0:00:56.58,Default,,0000,0000,0000,,command five times in order to advance Dialogue: 0,0:00:53.97,0:00:59.34,Default,,0000,0000,0000,,the the bird one step each time to the Dialogue: 0,0:00:56.58,0:01:01.47,Default,,0000,0000,0000,,pig or you can just tell the computer to Dialogue: 0,0:00:59.34,0:01:03.33,Default,,0000,0000,0000,,move forward once and then tell it to Dialogue: 0,0:01:01.47,0:01:05.82,Default,,0000,0000,0000,,repeat that five times and it will do Dialogue: 0,0:01:03.33,0:01:08.70,Default,,0000,0000,0000,,the same thing so in order to do this Dialogue: 0,0:01:05.82,0:01:11.31,Default,,0000,0000,0000,,you drag your move forward command and Dialogue: 0,0:01:08.70,0:01:14.31,Default,,0000,0000,0000,,then you put it inside the repeat block Dialogue: 0,0:01:11.31,0:01:15.96,Default,,0000,0000,0000,,and you can click on it and tell it how Dialogue: 0,0:01:14.31,0:01:17.70,Default,,0000,0000,0000,,many times you want to repeat the block Dialogue: 0,0:01:15.96,0:01:20.49,Default,,0000,0000,0000,,to tell how many steps you wanted to Dialogue: 0,0:01:17.70,0:01:22.23,Default,,0000,0000,0000,,take forward now one more thing is you Dialogue: 0,0:01:20.49,0:01:23.88,Default,,0000,0000,0000,,can put as many commands as you want Dialogue: 0,0:01:22.23,0:01:25.74,Default,,0000,0000,0000,,inside the repeat block so in this Dialogue: 0,0:01:23.88,0:01:28.71,Default,,0000,0000,0000,,example your tongue it to move forward Dialogue: 0,0:01:25.74,0:01:35.69,Default,,0000,0000,0000,,and turn left which will do five times Dialogue: 0,0:01:28.71,0:01:35.69,Default,,0000,0000,0000,,alright good job and have fun