2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
id: 5e7b9f080b6c005b0e76f064
|
2020-04-21 23:37:02 -05:00
|
|
|
title: Python Lists
|
2020-04-06 14:49:56 -04:00
|
|
|
challengeType: 11
|
|
|
|
videoId: Y0cvfDpYC_c
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: python-lists
|
2020-04-06 14:49:56 -04:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
|
|
|
What is the value of x after running this code:
|
|
|
|
|
|
|
|
```python
|
|
|
|
fruit = "banana"
|
|
|
|
x = fruit[1]
|
2020-04-06 14:49:56 -04:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --answers--
|
|
|
|
|
|
|
|
banana
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
a
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
b
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
2
|
|
|
|
|