Download as pdf
Download as pdf
You are on page 1of 5
BEA 2 Notes : LIST = ( ol/aahion of iferas a Parhtular arden. ain Py thon Ape brackets @3) inch cate a. dst 1 ono ir Aaa fe) fern enk in te Let ane de para ted by commas a EXAMPLE fruits es [fers z pe ra oO We con use both single quotes or double quetes , (@) Ware’ were meer D> faut 2 app? age ‘pup >> print (faut) output : re opple’, ae) = tanypett ] (pte y L psy) a position 4 "4 ‘e a is(-!) 7 1 o (2) HARSHIT VASHSTHA y harshitvashisth @ gmail: com + UGC IEE # print clement fhe Hi ity : i Spee » fru - [* ‘apple 6 go > Ipai(raiga) © 7) } indicates the position of on ehment Io Uist. a4 title( ) method ipeel sie Use for copétebse fist claacle oothut - Cx J, the above exrempled Pf we we prt fuk Lo]. titel) inded of print (Sule foJ) He out put Bill be Apple. instesol of apple enggre the feforaent dn o awicT fat cxam ble ay) exemple 2 if me \dont #ro chonge the clement , we ue. He rame of the lst fallow ea by the. index of the climate we wont fo hinge. fru [o] iG avana. Oe element: at position Lo} (Fert) will change Oe wharans > \ Nadel New element fo lst: To adlol One) ler ope to 5 hig We cam use append ( ) method , fruits r [ ‘apple, Smang,? eh? p foul. append (1 bana v7 / wae! PIS [Mogple a fmonge’, ‘gpepest faorn) New clement Ge) te added fy ov Ost bile Be dhe

You might also like