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
|
2020-05-25 19:15:32 +05:30
|
|
|
isHidden: true
|
2020-04-06 14:49:56 -04:00
|
|
|
isRequired: true
|
|
|
|
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?
|
|
|
|
<pre>words = 'His e-mail is q-lar@freecodecamp.org'<br>
|
|
|
|
pieces = words.split()<br>
|
|
|
|
parts = pieces[3].split('-')<br>
|
|
|
|
n = parts[1]</pre>"
|
|
|
|
answers:
|
|
|
|
- 'mail'
|
|
|
|
- 'q'
|
|
|
|
- 'lar'
|
|
|
|
- 'lar@freecodecamp.org'
|
|
|
|
solution: 4
|
|
|
|
```
|
|
|
|
|
|
|
|
</section>
|