2021-02-06 04:42:36 +00:00
---
id: 5e9a093a74c4063ca6f7c167
2022-03-14 22:46:48 +05:30
title: Iteración y módulos en Python
2021-02-06 04:42:36 +00:00
challengeType: 11
videoId: XzosGWLafrY
2022-03-14 22:46:48 +05:30
bilibiliIds:
aid: 633068913
bvid: BV1db4y127M4
cid: 409024056
2021-02-06 04:42:36 +00:00
dashedName: python-iteration-and-modules
---
# --description--
2022-03-14 22:46:48 +05:30
*En vez de usar notebooks.ai como aparece en el video, puedes usar Google Colab.*
2021-02-06 04:42:36 +00:00
2022-03-14 22:46:48 +05:30
Más recursos:
2021-02-06 04:42:36 +00:00
2022-03-14 22:46:48 +05:30
- [Notas en GitHub ](https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes )
- [Cómo abrir Notebooks desde GitHub utilizando Google Colab. ](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb )
2021-02-06 04:42:36 +00:00
# --question--
## --text--
2022-03-14 22:46:48 +05:30
¿Cómo iterarías e imprimirías las claves y valores de un diccionario llamado`user` ?
2021-02-06 04:42:36 +00:00
## --answers--
```python
for key in user.items():
print(key)
```
---
```python
for key, value in user.all():
print(key, value)
print(value)
```
---
```python
for key, value in user.items():
print(key, value)
```
---
```python
for key, value in user
print(key, value)
```
## --video-solution--
3