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

Popular posts from this blog

What is chopper

What is Resistor

Top 5 best Ethical hacking book for beginners