write the output of L1 = [15,17,19,80,123] L1( :2)
Answers
Answered by
0
-> print(L[2:5]) will return the items from position 2 to 5. -> Remember that the first item is at position 0, and note that the item in position 5 is NOT included. So, the output will be [6,82,5]Read more on Sarthaks.com - https://www.sarthaks.com/968777/given-the-lists-l-1-3-6-82-5-7-11-92-write-the-output-of-print-l-2-5
Given the lists L=[1,3,6,82,5,7,11,92] , write the output of print(L[2:5]) Read more on Sarthaks.com - https://www.sarthaks.com/968777/given-the-lists-l-1-3-6-82-5-7-11-92-write-the-output-of-print-l-2-5
Similar questions