2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
id: 5e7b9f090b6c005b0e76f066
|
2020-04-21 23:37:02 -05:00
|
|
|
title: Strings and Lists
|
2020-04-06 14:49:56 -04:00
|
|
|
challengeType: 11
|
|
|
|
videoId: lxcFa7ldCi0
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: strings-and-lists
|
2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
|
|
|
|
2020-04-06 14:49:56 -04:00
|
|
|
More resources:
|
2020-11-27 19:02:05 +01: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-04-06 14:49:56 -04:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --answers--
|
|
|
|
|
|
|
|
mail
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
q
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
lar
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`lar@freecodecamp.org`
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
4
|
|
|
|
|