WEBVTT 00:00:00.320 --> 00:00:03.740 Komputerlarning yaxshi jihatlaridan biri bu buyruqlarni qayta bajarishi. 00:00:03.740 --> 00:00:08.170 Inson sifatida, agar siz bir xil narsani ko‘p marta qilishingiz kerak bo‘lsa, haqiqatda zerikib ketasiz. 00:00:08.170 --> 00:00:08.809 00:00:08.809 --> 00:00:12.849 Ammo komputer bir xil narsani million yoki hattoki milliard marta ham qila oladi, 00:00:12.849 --> 00:00:15.000 va zerikmasdan yaxshi holatda bu narsani oxirigacha yetkazib qo‘ya oladi. 00:00:15.500 --> 00:00:17.430 Shunday qilib, misol uchun, agar men Facebookdagi barchani 00:00:17.430 --> 00:00:20.960 email jo‘natib tug‘ilgan kuni bilan tabriklashni xohlasam, 00:00:20.960 --> 00:00:24.850 bu emaillarni barchaga yozib chiqish uchun menga bir asrdan ko‘p vaqt ketadi. 00:00:24.850 --> 00:00:25.269 00:00:25.269 --> 00:00:28.760 Lekin bir necha qator kod bilan, men Facebookdagi barchaga tug‘ilgan 00:00:28.760 --> 00:00:32.229 kuni bilan tabriklab email yuboradigan sistema tuza olaman. 00:00:32.229 --> 00:00:34.000 Mana looplar nima, va nima uchun ular qiymatli 00:00:34.500 --> 00:00:37.180 va ular komputerlar juda yaxshi bajara oladigan jihatidan biri. 00:00:37.180 --> 00:00:40.550 Bu misolda, sizning maqsadingiz qushni cho‘chqaga yetishishi 00:00:40.550 --> 00:00:44.940 uchun harakatlantirish. Hozir, biz buni juda ham oson bajarish uchun 00:00:44.940 --> 00:00:49.210 "repeat" bo‘limidan foydalana olish imkoniyatiga egamiz. Yoki siz buni 00:00:49.210 --> 00:00:52.219 har safar qushni cho‘chqaga nisbatan bir qadam oldinga chiqarish maqsadida 00:00:52.219 --> 00:00:57.079 komputerga besh marta "move forward" buyug‘ini berish orqali ham bajarishingiz mumkin. 00:00:57.079 --> 00:01:00.590 Yoki siz komputerga shunchaki bir marta oldinga harakatlanishini ayta olasiz, 00:01:00.590 --> 00:01:04.150 va keyin unga bu jarayonni 5 marta qaytarishni aytishingiz mumkin va u xuddi shunday qiladi. 00:01:04.150 --> 00:01:08.280 Shunday qilib, buni qilish uchun siz "move forward" buyrug‘ini olib keling, 00:01:08.280 --> 00:01:11.729 va keyin uni "repeat" bo‘lim ichiga qo‘ying. 00:01:11.729 --> 00:01:16.200 Va siz uning ustiga bosa olasiz va unga qancha qadam oldinlashini xohlashingizni 00:01:16.200 --> 00:01:19.970 aytish uchun bo‘limni necha marta qaytarishini ayting. Endi yana bir narsa bu 00:01:19.970 --> 00:01:23.540 siz repaat bo‘limi ichidagidek ko‘p buyruqlarni qo‘ya olasiz. 00:01:23.540 --> 00:01:26.909 Demak, bu misolda siz unga besh marta bajarilishi kerak bo‘lgan 00:01:26.909 --> 00:01:30.970 oldinga harakatlanishni va chapga burilishni aytayapsiz. Juda yaxshi ish, rohatlaning:-) 00:01:30.970 --> 00:01:31.220