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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
