2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
id: 5e7b9f070b6c005b0e76f061
|
2020-04-21 23:37:02 -05:00
|
|
|
title: Intermediate Strings
|
2020-04-06 14:49:56 -04:00
|
|
|
challengeType: 11
|
|
|
|
videoId: KgT_fYLXnyk
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: intermediate-strings
|
2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
|
|
|
|
2020-04-06 14:49:56 -04:00
|
|
|
More resources:
|
2020-11-27 19:02:05 +01: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-04-06 14:49:56 -04:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --answers--
|
|
|
|
|
|
|
|
nanana
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
na
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
2
|
|
|
|
|