Advertisements
Advertisements
प्रश्न
A tuple named subject
stores the names of different subjects. Write the Python commands to convert the given tuple to a list and thereafter delete the last element of the list.
लघु उत्तर
उत्तर
SubLst=list(subject)
SubLst.pop()
Explanation: The tuple is transformed into a list using the list() method. The final member in the list is removed by the pop() function.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?