55 lines
704 B
Markdown
55 lines
704 B
Markdown
![]() |
---
|
|||
|
id: 5e7b9f050b6c005b0e76f058
|
|||
|
title: Використання умовних операторів
|
|||
|
challengeType: 11
|
|||
|
videoId: gz_IfIsZQtc
|
|||
|
bilibiliIds:
|
|||
|
aid: 206949935
|
|||
|
bvid: BV1Jh411z7bY
|
|||
|
cid: 376337035
|
|||
|
dashedName: conditional-execution
|
|||
|
---
|
|||
|
|
|||
|
# --question--
|
|||
|
|
|||
|
## --text--
|
|||
|
|
|||
|
Який код є правильним і при виконанні буде виведено "Yes" за умови, що x = 0 та y = 10?
|
|||
|
|
|||
|
## --answers--
|
|||
|
|
|||
|
```python
|
|||
|
if 0 == x:
|
|||
|
if y == 10:
|
|||
|
print("Yes")
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
```python
|
|||
|
if 0 == x:
|
|||
|
if y == 10:
|
|||
|
print("Yes")
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
```python
|
|||
|
if 0 == x:
|
|||
|
if y == 10:
|
|||
|
print("Yes")
|
|||
|
```
|
|||
|
|
|||
|
---
|
|||
|
|
|||
|
```python
|
|||
|
if 0 == x:
|
|||
|
if y == 10:
|
|||
|
print("Yes")
|
|||
|
```
|
|||
|
|
|||
|
## --video-solution--
|
|||
|
|
|||
|
4
|
|||
|
|