2021-02-06 04:42:36 +00:00
|
|
|
---
|
|
|
|
id: 5e7b9f090b6c005b0e76f068
|
2022-03-10 20:35:22 +05:30
|
|
|
title: 'Diccionarios: Aplicaciones comunes'
|
2021-02-06 04:42:36 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: f17xPfIXct0
|
2022-03-10 20:35:22 +05:30
|
|
|
bilibiliIds:
|
|
|
|
aid: 805747023
|
|
|
|
bvid: BV1v34y1D7ug
|
|
|
|
cid: 414168867
|
2021-02-06 04:42:36 +00:00
|
|
|
dashedName: dictionaries-common-applications
|
|
|
|
---
|
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
2022-03-10 20:35:22 +05:30
|
|
|
¿Qué imprimirá el siguiente código?
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
```python
|
|
|
|
counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10}
|
|
|
|
print(counts.get('kris', 0))
|
|
|
|
```
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
quincy
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2022-03-10 20:35:22 +05:30
|
|
|
[devolverá un error]
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
3
|
|
|
|
|