Python Programme (Extracting Individual Element)
* Extracting Individual Element Python Programme
#Extracting Individual Element
#Example-1
l1 = [1,"L",2,"K",3,"R"]
#after print l1[1]
l1[1]
OUT PUT :
'L'
#Example-2
l2 = [8,"N",9,"D",10,"A"]
#after print l2[1:8]
l2[1:8]
OUT PUT :
['N', 9, 'D', 10, 'A']
Comments
Post a Comment