Advertisements
Advertisements
प्रश्न
What will be the output of the following statement?
list1 = [1,2,3,4,5]
list1[len(list1)-1]टिप्पणी लिखिए
Advertisements
उत्तर
This will print the last element of the list. i.e. 5
list1[len(list1)-1]
list1[5-1]
list1[4]
5shaalaa.com
Lists in Python
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
