2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
id: 5e7b9f060b6c005b0e76f059
|
2020-04-21 23:37:02 -05:00
|
|
|
title: More Conditional Structures
|
2020-04-06 14:49:56 -04:00
|
|
|
challengeType: 11
|
|
|
|
videoId: HdL82tAZR20
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: more-conditional-structures
|
2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
2020-06-06 15:20:30 +05:30
|
|
|
|
2020-04-06 14:49:56 -04:00
|
|
|
More resources:
|
2020-11-27 19:02:05 +01:00
|
|
|
|
|
|
|
\- [Exercise 1](https://www.youtube.com/watch?v=crLerB4ZxMI)
|
|
|
|
|
|
|
|
\- [Exercise 2](https://www.youtube.com/watch?v=KJN3-7HH6yk)
|
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
Given the following code:
|
|
|
|
|
|
|
|
```python
|
|
|
|
temp = "5 degrees"
|
|
|
|
cel = 0
|
|
|
|
fahr = float(temp)
|
|
|
|
cel = (fahr - 32.0) * 5.0 / 9.0
|
|
|
|
print(cel)
|
|
|
|
```
|
|
|
|
|
|
|
|
Which line/lines should be surrounded by `try` block?
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
1
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3,4
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
3
|
|
|
|
|