+ 4
Solve this python trick no.2
hi everyone x=['apple','orange',['lichi','pineapple']] can you find the position of the pineapple in above list post your comment
4 Answers
+ 5
There must be a better way
https://code.sololearn.com/c3IiaXaY6lKi/?ref=app
+ 9
print(x[2][1])
Then pineapple will gets displayed
0
pineapple = x[2][1]
- 1
t