2020-04-06 18:49:56 +00:00
|
|
|
---
|
|
|
|
id: 5e7b9f050b6c005b0e76f058
|
2020-04-22 04:37:02 +00:00
|
|
|
title: Conditional Execution
|
2020-04-06 18:49:56 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: gz_IfIsZQtc
|
2021-10-01 04:24:12 +00:00
|
|
|
bilibiliIds:
|
|
|
|
aid: 206949935
|
|
|
|
bvid: BV1Jh411z7bY
|
|
|
|
cid: 376337035
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: conditional-execution
|
2020-04-06 18:49:56 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --question--
|
2020-04-06 18:49:56 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --text--
|
2020-04-06 18:49:56 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
Which code is indented correctly to print "Yes" if x = 0 and y = 10?
|
2020-04-06 18:49:56 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --answers--
|
2020-05-31 12:57:09 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```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:
|
2020-05-31 12:57:09 +00:00
|
|
|
print("Yes")
|
2020-04-06 18:49:56 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
4
|
|
|
|
|