2021-02-06 04:42:36 +00:00
|
|
|
---
|
|
|
|
id: 5e7b9f060b6c005b0e76f059
|
2022-03-11 22:52:40 +05:30
|
|
|
title: Más estructuras condicionales
|
2021-02-06 04:42:36 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: HdL82tAZR20
|
2022-03-11 22:52:40 +05:30
|
|
|
bilibiliIds:
|
|
|
|
aid: 631930118
|
|
|
|
bvid: BV1Nb4y1r7z2
|
|
|
|
cid: 376337449
|
2021-02-06 04:42:36 +00:00
|
|
|
dashedName: more-conditional-structures
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
Más recursos:
|
2021-02-06 04:42:36 +00:00
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
\- [Ejercicio 1](https://www.youtube.com/watch?v=crLerB4ZxMI)
|
2021-02-06 04:42:36 +00:00
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
\- [Ejercicio 2](https://www.youtube.com/watch?v=KJN3-7HH6yk)
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
Dado el siguiente código:
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
```python
|
|
|
|
temp = "5 degrees"
|
|
|
|
cel = 0
|
|
|
|
fahr = float(temp)
|
|
|
|
cel = (fahr - 32.0) * 5.0 / 9.0
|
|
|
|
print(cel)
|
|
|
|
```
|
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
¿Qué línea/líneas deben estar rodeadas por el bloque `try`?
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
1
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3,4
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
Ninguna
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
3
|
|
|
|
|