2021-06-15 00:49:18 -07:00
|
|
|
---
|
|
|
|
id: 5e7b9f090b6c005b0e76f066
|
2021-07-19 22:22:21 +05:30
|
|
|
title: Stringhe e liste
|
2021-06-15 00:49:18 -07:00
|
|
|
challengeType: 11
|
|
|
|
videoId: lxcFa7ldCi0
|
2021-10-03 12:24:27 -07:00
|
|
|
bilibiliIds:
|
|
|
|
aid: 804401443
|
|
|
|
bvid: BV1By4y1j7F9
|
|
|
|
cid: 376385517
|
2021-06-15 00:49:18 -07:00
|
|
|
dashedName: strings-and-lists
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2021-07-19 22:22:21 +05:30
|
|
|
Altre risorse:
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2021-07-19 22:22:21 +05:30
|
|
|
\- [Esercizio](https://www.youtube.com/watch?v=-9TfJF2dwHI)
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
2021-07-19 22:22:21 +05:30
|
|
|
Quanto vale n in questo codice?
|
2021-06-15 00:49:18 -07: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
|
|
|
|
|