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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?