Alterna · учебный материал
Cycles and numerical algorithms
Chapter 36: Programming: Cycles and Numerical algorithms.
Что в этом материале
- Alt expedition: for, when and stop
- Headway
- Cycle for andrange
- Wile Cycle
- Euclid, numbers and delimitation
- Workshop
- Skills testing
- Python studio
Содержание и основные понятия
ALT
Alt expedition: for, when and stop
Pick a way to move.
while True
The visualiser stops at the safe limit and the stop button can be pressed at any time.
MARCHRUE OF 5 POLLUTIONS
Iterations: 0
BAZA
1
2
3
4
FINISH
for camp in range(1, 6):
move()
For knows five crossings in advance.
The cycle converts a repeated action into an algorithm: the counter sets a step, the battery collects an answer, the condition guarantees a stop.
substance and practice
Grade 8
OGE No. 6
OGE No. 16
EGE No. 25
01
Headway
The workshop and the exam test test are not guessing, but the steady skill of analysis and code writing.
36.1 · Theory and track
Cycle for andrange
For resets the complete sequence of values. the sequence(s, step, step) includes the step but does not include the step.
Open topic
36.2 Theory and track
Wile Cycle
while repeats the body as long as the condition is true. It is chosen when the number of repetitions is unknown in advance, but the criterion of continuity is known.
Open topic
36.3 Theory and track
Euclid, numbers and delimitation
The numerical algorithms are constructed from a small set of bricks: %, / /, the cycle and the neat edge of the overtaking.
Open topic
36.4 Practice
Workshop
Twenty diagnostic questions with four outcomes and eight programme tasks with additional tests.
Start training
36.5. Monitoring
Skills testing
The timer does not drop when rebooted, correct is hidden until the end, the program task is mandatory.
Open option
36.6 · Copyright code
Python studio
Choose a problem, change the algorithm, and pass the visible and hidden tests in the isolated runtime.
Open the studio.