So the topic of this section, is what's called a for-loop.
Тема этой лекции - "цикл", так называемый for-loop.
Write three functions that compute the sum of the numbers in a given list using a for-loop, a while-loop, and recursion.
Напишите три функции, которые вычисляют сумму чисел в данном списке, используя цикл for, цикл while и рекурсию.
So here in the blue box here I have a picture of a for-loop and I'll just talk about what the parts are.
Здесь в голубом окне у меня изображение for-loop, и я буду говорить о его составляющих.
A preamble for a for-loop is the for keyword optionally followed by an initializer operator, optionally followed by the while keyword and an expression (while-expression), optionally followed by the by keyword and an assignment operator (the iterator operator).
Преамбула для цикла for состоит из ключевого слова for, за которым может следовать оператор инициализации, за которым могут следовать ключевое слово while и выражение (while-выражение), за которыми могут следовать ключевое слово by с оператором присвоения (оператор итерации).
You see, if somebody has made a machine that does something once, and somebody else designs a machine that will do the same thing, but N times, for us that's a for-loop, but for the Patent Office that's an invention.
Понимаете, если кто-то сделал машину, которая делает что-то один раз, а кто-то другой конструирует машину, которая делает то же самое, но Nраз, для нас это цикл for, а для Патентного бюро это изобретение.
So here's the syntax of an if-statement shown in the context of a for-loop.
Здесь мы видим синтаксис "if statement" в связи с "4-loop".
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.