2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5e7b9f090b6c005b0e76f066
|
|
|
|
challengeType: 11
|
|
|
|
videoId: lxcFa7ldCi0
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: strings-and-lists
|
2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --description--
|
|
|
|
|
2020-08-13 12:00:20 +02:00
|
|
|
More resources:
|
2020-12-16 00:37:30 -07:00
|
|
|
|
|
|
|
\- [Exercise](https://www.youtube.com/watch?v=-9TfJF2dwHI)
|
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
What does n equal in this code?
|
|
|
|
|
|
|
|
```python
|
|
|
|
words = 'His e-mail is q-lar@freecodecamp.org'
|
|
|
|
pieces = words.split()
|
|
|
|
parts = pieces[3].split('-')
|
|
|
|
n = parts[1]
|
2020-08-13 12:00:20 +02:00
|
|
|
```
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
## --answers--
|
|
|
|
|
|
|
|
mail
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
q
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
lar
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
[lar@freecodecamp.org](mailto:lar@freecodecamp.org)`mailto:lar@freecodecamp.org`
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
4
|
|
|
|
|