Files
freeCodeCamp/curriculum/challenges/chinese-traditional/07-scientific-computing-with-python/python-for-everybody/conditional-execution.md

51 lines
541 B
Markdown
Raw 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: 5e7b9f050b6c005b0e76f058
title: 根據條件執行
challengeType: 11
videoId: gz_IfIsZQtc
dashedName: conditional-execution
---
# --question--
## --text--
以下哪個代碼縮進能夠滿足當“x=0”和“y=10”的時打印 "Yes"
## --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