2020-08-13 10:00:20 +00:00
|
|
|
---
|
|
|
|
id: 5e7b9f070b6c005b0e76f061
|
2021-02-06 04:42:36 +00:00
|
|
|
title: Intermediate Strings
|
2020-08-13 10:00:20 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: KgT_fYLXnyk
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: intermediate-strings
|
2020-08-13 10:00:20 +00:00
|
|
|
---
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
# --description--
|
|
|
|
|
2020-08-13 10:00:20 +00:00
|
|
|
More resources:
|
2020-12-16 07:37:30 +00: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 10:00:20 +00:00
|
|
|
```
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
## --answers--
|
|
|
|
|
|
|
|
nanana
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
na
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
2
|
|
|
|
|