Maybe the answer can be described like following ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Maybe the answer can be described like following ?

tlo=("123", "153", "53") print(tlo[1:])

29th Jun 2018, 6:47 AM
Outro
Outro - avatar
4 Answers
+ 2
print (tlo [1:]) states to print all the elements of the list from element with index 1 that is 153
29th Jun 2018, 2:41 PM
Sahil Danayak
Sahil Danayak - avatar
0
The Output is 123?
29th Jun 2018, 8:33 AM
Jakub Grucel
Jakub Grucel - avatar
0
Well, the output is ('153', '53') in my IDE, and that is my understanding to the answer of the question. And I'm not sure whether it's correct or not.
29th Jun 2018, 9:55 AM
Outro
Outro - avatar
0
I think the codes display the split of the tuple, it intercepts the second and the third elements of the tuple.
29th Jun 2018, 10:02 AM
Outro
Outro - avatar