2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5e7b9f070b6c005b0e76f061
|
|
|
|
challengeType: 11
|
|
|
|
videoId: KgT_fYLXnyk
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: intermediate-strings
|
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=1bSqHot-KwE)
|
|
|
|
|
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
What is the value of i in the following code?
|
|
|
|
|
|
|
|
```python
|
|
|
|
word = "bananana"
|
|
|
|
i = word.find("na")
|
2020-08-13 12:00:20 +02:00
|
|
|
```
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
## --answers--
|
|
|
|
|
|
|
|
nanana
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
na
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
2
|
|
|
|
|