2020-08-13 10:00:20 +00:00
|
|
|
---
|
|
|
|
id: 5e7b9f050b6c005b0e76f058
|
2021-02-06 04:42:36 +00:00
|
|
|
title: Conditional Execution
|
2020-08-13 10:00:20 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: gz_IfIsZQtc
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: conditional-execution
|
2020-08-13 10:00:20 +00:00
|
|
|
---
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
# --question--
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
## --text--
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
Which code is indented correctly to print "Yes" if x = 0 and y = 10?
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
## --answers--
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +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-08-13 10:00:20 +00:00
|
|
|
print("Yes")
|
|
|
|
```
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
4
|
|
|
|
|