0% found this document useful (0 votes)
13 views16 pages

02 Data Types

Data Types in Python by RG

Uploaded by

Rahul Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views16 pages

02 Data Types

Data Types in Python by RG

Uploaded by

Rahul Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
aege sey ph sa “Wad bate i: wv of kon be alphabef goaup af ete Peat fer “sume (41), Refer - fiver jae Amneling forthe dadostny 2 7 Notable lergly be upte 42 chanarfents. Gide malta | Python Eset Ppt — Data 4 aH ranas foe date 2 ds specify she perf thy Valine “pelt ial ty : a 3 Based en fin we f dhfar tf cay be Aeyidecl ate fee. tupets th Single Ynlae/trdividoal st bya (o78] un ee dod types / : ees ke Ke Ome Ss tigh vabis diate tha vandable sthun th ds Kross 04 tale value 2 daboslype, Lado iii : + ab oh feat ota boo A La ed gs i a Le hee (~00: fe Ho)od «— Ahern will be fos dps Of 97 vy Yosnany aan, HY ww tas ind, (th) Nobel { M L : ; —y bool C28) , Fine [to eheek. ae , , Con hats defonf dype (98) t ay DIIPPPPPPIPPPPPPPIITTTTVAAAAA GARR RRS =k 4 | Dogert¥.02. 2005 pelnt dy ts vr patGn [7 PPO | venitited my 244p wy 2+4t ee i > be Itd de> pe bial 0 pelalicipts i ? A t ye print) | verified! ets t >»? NomEn nant name fr’ 3 mot altfinnf. ye 16] e o a a al - : - - - ~ -~ ~ es nn Youobh, /: Stock pace Borlan (tue) a aie ae foe veer m aie “Tone: and tole” * a . 9 thse fide valaig anti aptbud kayirgrel , 5 Sp Gince Af ts baying ooh Yoo valuce, Pte & conecdenes’ 05 a lefanlf orel a hs targinlenea! as moncdefanlf vahed- © thine ear-be tutect dn-forr Seenkries ye z ¢ ®@ (bd Asarotne ty any vartabh, & U4 or reeadbend oahih checkeg Lome es ea Wii) po 1020 | >> io (a) UD YW a True py Folte 19012389198 /25 “True Votable /shek Space valve [ep Space a OKI <1 tee v soba JI —sahisa Lolleetion of chanactns trelered! ‘hee ala clouble [etl quofes, Spm tan Von ‘bonnet! Vor[ =" chon York = ™ chan sti SERRE RR RRERRERRER RE RER RRR RRR EE yr Ty Th Mog Ne Can Stone chonosfens of type 4. Up uppen-ease,, (iy beienene, tty aipife , (h’) special) chanac feng, Thun ds me Sepennbion befesaey the Volaeg ara, chonactent. > When any terale quohe. x thon ba Shia thon tre am goby - fo ule dunk quoter. wi ye Malling Commenf—y> (rocple quofes) feral Nene comment —y lt hrahdog) Dose: 18.02.2005 _ | Mureny allycofien fon, hog tng Collec fons wy Sy doch feline) yy len Gd Ste Affen Sxohing a. collection Lendns! nif exafe om layen of fmerneoy a_volue Space, 7 Thx tnafed Iyen brill get divided tnfr mo. of- blocks Abia exoctly equal fothe length if fhe eelleefion. Athen onafien, each onal evany scales \Anill geb strnee! took fon respective bloek Sequenceolly. ' ‘ DIPIPIIPIPIPIPIP PAPI IMIG AS ARR RAS ) xa 'o dath: fellow’ t iS Vontoble /gtaeld Space ( volue /tHeap Space . = ie OxIT : rs ETRE 2 2 5 Fndlesting, = @ > Incloxing # a pheneminal ef f and en 5 eine Vodue which 43 coal amide éollectin. : i: . yas 5 Poweilive Negalive @ Bait taavels from ts do RHS ancl cfente from fe 6-1) B tah on ds the lenghth- of the Colle e Hen. ® > toayelt from Riis do Las and feat from —1 fe —m thane bm HS The megative bnadh of the celle bien. : $8 oer preset ol ang ® . a i i alla ale Symtn von Imdex’| Sieg yt iso éellechon of Lomeg enivss Aral Butoregertens ta aterm) Lrdased Within brackels (EI) anel the volois one Sepenorbed by cthe Cetamna. Symtany Yon = [voll , vols, + /Yolma <7 Hotty ancois Eellictions — Tatisn Glhedion ef volues bahteh belaege. fo fhe tame alata dype- Example 7 ace [12,3] voorble [stack eSpace value. /Hap Space OxX39 * ean | 1 pepe w ia Sila besccess a valie: Uuby Tadley DIIPPPPIPPPPPPPPIPIPPIPIIATAASAARRR TP an ee > Hefeneganerrs ¢~ belongs tothe aif isa cellecbion ofrolue chat ante nek came. Frarnple — ne [ty 'Ram’, Tout] aellpe —rSymton fromedify SS 1 Yorr [ind] 5 area valine ual anal Loma —y Thee Ose the clase, dynes thich cane be omodefy ‘thal , delle nvolue present nth fi k= ‘ ee “ 18d NESHHHSHHEREE EEE SEES EEE EEEEEEEEGIAE wal Va —y Thise on the datatypes heal (Fhe medify ane! delete a value eis a Eramplt — Apont from fhe £4. Dates l9,02.2005 Ty Mpencd’r: This a Ankit function babich 3 Seal be aoe the neti value fovon exiching bicf of fhe Lhe. Sykes Noviable. oppend Cvatue) > We. carlt ade! yalues ot aponHewtarr petits. —yhe ean't obk to puft mone thon brvabes aitide fhe Bppend() furrctiin, oa, > th ham dobre] ft fom kihich 4s Uted fs aoll nem Value foo porcticnlon prettion of an tainting Lit Symton — yorkoble. dnseot- (inden, vobie) Exomph — ls fs tnnsent (6, ' raamonnia’)) YT tht Index tg moh pretense fur ff aett ach fhe value. of the Insp. Sf mdlien, te ougetve than 2-407 old af he Sforting poss'tien. ADPIPPPPPPIPPPIPPIVIIIPIVIIIASAAARR ROD TD ose. 2 ee Ss... co 7 open it tir i ae b= ele ds aaa > Extend ae o-dnbuill tahich £5 tect te-auld mnulliph values tn a Beh symfax — Vo. ex tend CLvaluei]) PRO Lscth fon dobuilt dunelion. tubtch &s used tenenone, the ie we froin lef. Symfootcm $bS666666 Tyre. pape) —3 Cmave framsthe eral of he biel. me yor PepClinaterd) —> Remove sthe value from o- ponbieutan dncon cert passed index a te ee e Cail te @ Oh Ln 2 2 RE Beer tsa dnbutf denchin which us uted bo mimave-phe vole fromcthe LSP based ohethe present yale, Syntax — 7 Veen. nuindve (value) SHHKDEES Dafet 20.0% 2005 “Jak. oth iso coltrchion of bomagensaus and brfenogencous ohta stems enelosed trititn porantheys ane teat 4y ommnd Syntax = Vormams (wall, volo, + Yodn) 2 : Voh—mamt = volt, volo, oe. alm Example — sp P2017 2/3, abe!) wed py 24/203 me ra (12/3, fabe’) 7.1/2) >> typed) : yy Munony aller ion Yontable [shack spore vole /tenp tpt oxor a oxud Uli frgt |e DDIPIPIIPIPPPPPPIPIPPPPIIUSSSSSER RR GE = —> Trek ts Iromoufabl,. Thakt by thm % mo functions. = hd ? > He colt sbne only nse Volue dvvide: o-test tuple, re A sence duph ds dromabable rope i it ubed an Mees ° alate, toanynistion- @ coy Diffs 5 N “Tork list ope : Bros anutybh - hgpts mmole, = i) Bs ee ak Shrkeen- te) sthenotten ds piten. sien conquering ees mourns « (hy TP Lonpemye Og murneny ° 2) eee enka Uy) Laph: apenationy Ome caves gare prane “oe fa foe Praia (vy) wt is Mee fon, a Bay ne nel us eee | coer —y det fea wnandaned corral Deh -dupheate Lehetion of hpgenst ond Prtenegencens ola: dems. Syntax Von—mamt = Slt, ae val ‘ ‘ Nee be esse ssssas Exompk — syoLmame > $n), wale as <7 nbonp yy @ Gehl = $1 218/475) Hell} >> type (set) SIARRR Nee Sy sett Sales ak? $1,2/8,4/S, ‘Hello'S bet) Sefo Functions ow set | > ede)» ib isn cobuill dunn ech 18 | Be tbls Patter 7s! atta bofet 21.02.2005 —>pepor tis m arbuilf function ashich ds uted. te nemove Noles from the enisting Sef, Syntax — ane Vomtable meme « pope bred —> pope) funciion removes” values from set has Linly. SAbotiot» Ne ean nemove only ere value tting te PRC ion. ey removers TH tam anbutlt funekion Altch 43 used fo memove specitie value ¢nomthe existing Sef. Symfan Vantobh mame. remove Crorbecdlecn A) ADIPPPIIPIPPPPPP PIPPI TIAA i Dédtionony (diet) vowviobk mam = 3 Myo: value p be onything. One Sepenafeal by Loma (1, Ds ae "ouths” 'ORIE [ oxes | [owe] uk Ox 'potition’ | 26 eee ee eee PUREE EES Sy this colketion of Key value pairs’ Speed Symlax — Hert’, Key Shoull be unique nel aimyrutable amet valusy ens

You might also like