GivGen a list = [102, 343 , 'que', 2.2, 50], what would be the output of print(list[0:2]) in Python? * | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

GivGen a list = [102, 343 , 'que', 2.2, 50], what would be the output of print(list[0:2]) in Python? *

A quick response will be highly appreaciated

11th Feb 2019, 7:36 AM
George Mwakio
George Mwakio - avatar
1 Answer
+ 5
[102, 343] You can test in in the SoloLearn Code Playground.
11th Feb 2019, 7:46 AM
Rowsej
Rowsej - avatar