40 lines
638 B
Markdown
40 lines
638 B
Markdown
|
---
|
||
|
id: 5e7b9f090b6c005b0e76f066
|
||
|
title: Strings and Lists
|
||
|
challengeType: 11
|
||
|
videoId: lxcFa7ldCi0
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
More resources:
|
||
|
- <a href="https://www.youtube.com/watch?v=-9TfJF2dwHI" target='_blank'>Exercise</a>
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
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]
|
||
|
```
|
||
|
answers:
|
||
|
- |
|
||
|
mail
|
||
|
- |
|
||
|
q
|
||
|
- |
|
||
|
lar
|
||
|
- |
|
||
|
lar@freecodecamp.org
|
||
|
solution: 4
|
||
|
```
|
||
|
|
||
|
</section>
|