Files

50 lines
881 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5e7b9f070b6c005b0e76f05e
title: 'Цикли: ускладненні вирази'
challengeType: 11
videoId: AelGAcoMXbI
bilibiliIds:
aid: 334491369
bvid: BV1tw411R7Mm
cid: 376530765
dashedName: iterations-loop-idioms
---
# --question--
## --text--
Нижче наведено код який знаходить найменше значення у списку. Один з рядків коду містить помилку яка не буде дозволяти коду працювати правильно. Який це рядок?:
```python
smallest = None
print("Before:", smallest)
for itervar in [3, 41, 12, 9, 74, 15]:
if smallest is None or itervar < smallest:
smallest = itervar
break
print("Loop:", itervar, smallest)
print("Smallest:", smallest)
```
## --answers--
3
---
4
---
6
---
7
## --video-solution--
3