2021-02-06 04:42:36 +00:00
|
|
|
---
|
|
|
|
id: 5e7b9f090b6c005b0e76f066
|
2022-03-11 22:52:40 +05:30
|
|
|
title: Cadenas y listas
|
2021-02-06 04:42:36 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: lxcFa7ldCi0
|
2022-03-11 22:52:40 +05:30
|
|
|
bilibiliIds:
|
|
|
|
aid: 804401443
|
|
|
|
bvid: BV1By4y1j7F9
|
|
|
|
cid: 376385517
|
2021-02-06 04:42:36 +00:00
|
|
|
dashedName: strings-and-lists
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
Mas recursos:
|
2021-02-06 04:42:36 +00:00
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
\- [Ejercicios](https://www.youtube.com/watch?v=-9TfJF2dwHI)
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
2022-03-11 22:52:40 +05:30
|
|
|
¿Cuál es el valor de n en este código?
|
2021-02-06 04:42:36 +00:00
|
|
|
|
|
|
|
```python
|
|
|
|
words = 'His e-mail is q-lar@freecodecamp.org'
|
|
|
|
pieces = words.split()
|
|
|
|
parts = pieces[3].split('-')
|
|
|
|
n = parts[1]
|
|
|
|
```
|
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
mail
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
q
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
lar
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`lar@freecodecamp.org`
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
4
|
|
|
|
|