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