0% found this document useful (0 votes)
258 views17 pages

Tuple Notes

Computer Class 11 Science Tuple Chapter Handwritten Notes

Uploaded by

rosifop415
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)
258 views17 pages

Tuple Notes

Computer Class 11 Science Tuple Chapter Handwritten Notes

Uploaded by

rosifop415
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/ 17
S Page No, es Supls errr | 4 @.|lwhat is tuples” geste a Jae = | Tuple is type of sequence LiKe sie sanol_Livts but List ts bm utable bat os seg Anal desples ae ion mudshle< tuples explant example wl] y= tuple coits n0_membere , emmy tuple + | (198) = tuple of vategems si as 3 = integees “ 12, 1,4) = 4uple af nas b Cinteg tes ancl bloating + | Cath’ “) = tuple ¢f chamactens pi (at 1b, 8-8 zeen*) - tuple 4 | + Wane’, eos’, there’) =4aple ap séadng— ee! Dypencas nope te ceeede tuples 2 Jcxdacing up Je le tating Hepes sumilte 4o-liad trenton bats neek 8S a Pamentheses ond aeparare by. comm (e406) Labs! , det’) (12,344) . ex = (vate _| D llwe can create a 4upie_by using tupl ep uslag sup ~feinctinn. The empty tuple st). | Cx = Als Tape C) ’ Ox= >>> 4 = C1) (1) was treated eran 272-4 2s in tegen C* pression 1 hence 4 Stones an, . 2x 2 227-bF§ 2774 ws (32) oth will create t4P les ewe - néed 40 add @ comma © z2rta=C4) Cacate atepic, 277.42. C4, 2 2 Lang Buples . jo many elements» you Plit it acmoce Se mueses Sines ° oe Co, 14, 9,16 26 ac ve @ G1, pno, 2b, pat, 169, II 22K 256 269 S24, BCL Yao, 49h ey $29, sre, 628°) ———4 | o tt sevallinpatl “ as gus | Rabat ('¢ bey fy PEK tn Plat te ple__¢. Cueated duple ic lez, > FI A aces sre 2 2 ltaple ave immutable Casa-edivable) thins otsee thar ~—— fa eth Ie tay ite te a. ea edi mat Se (bate } ly . n lee fe, 2 Piminutable teppe lide o sae Jae: = . : y © ; a huise, Ge canned chase its elemete : ao a =e Ces OSsbatepa tat . exe weakest FIT = 21 2 4 2 Type fnnce: tipple! objects dace nad support Shen 4ssz ‘ gn menh ‘ 2 ine you give o atetemens a + ex: numbexs CoIT23 =O Sis silt give ne etton le taal set Nw is 3 8 B & —Synavrs for_ In ? Vy ey vee, [ote } ncatenate’ tuo tuples: ond: creates 0 Meco duple. Page No. (wate inthe tuple slit . ex! hele Clow 14, go 22 us ay) tpi fs: sod Coogi, 32, 28,34) ex: 2224p) L-1x 2? (012,14, 20, 224,30). i Stop + tap J Syntax 2 seq [0 sts ex: _tol (io, 12, 14,20, 22,24, 0, 2%, 39) mo tol rb: 10 2h (io,14 22,30, 24) SS 2 bel Ci. 39 ee ial See ee eee eed a Page No. (vate J TP sdarc Stop s4ep 3 ce ade: opie Slice cut of 4uplet . Calling bekveen incleses stacts audsttap aod tn cluding Stop 2k, Step-\_Clements in_be dues Ane eandaining la Culees Sad Clemeat in kevemse elder ,cinating tom HHH Lil ' f_ True Peres Co, ) ass false HE | ff 7 ae a r - xz azb 1 —< a false aan = J se a ( i) ‘ ext 227d=(2.0 $0 — j— 22 dod — ad false J = LL e + _p2rdesa = Trae Ue . exe 2ezC2.ey) wade Le we 2 Capac 24 ole, iq 7 Cent, M furmase+ of values 's called feck inn and oe sti i. - ! : ou | ——— | | bi a Psd wea : pais . zat: EL tohese the arsmbem of yarinbler in due [eld oidle of assdyament—|— 1s. Must madeh the —numbere of element tiin the opyples | — te, . ex: 42 (19,0 Sp) fey Rae ha Wy 2 ot -— if wean many even enclose ig will gi mee a ; : 4 4 HeeS © Aaaiable IR i = i Bernt (w) i fe Yeink Lx) eS t i a a te roca } dels +ap/e name> ex 412085 299,12) 272 49 dy 2.4, 12) cel +) a . i 222 Paint (41) Yue btn () fuacdon The meted _nepureas (engthop +e tuple and felunas or iedes et ———§ Lsyndarin len l 4 tute 2) 2s sii nest Ed ‘i bea te wy ex: employee = (Sama! 100.0524, Saler") Le, Lemp lowe) | 2 exi272 yo\al27,94es- 40): | Suna Cval) 2 he index () metinad Whe index) @eeus urith tuples in the Same way i: fists. fe it redurns tne indes cf cn thisding element ogo steple——§— Syntsr: 4 tuplenam: lea Ce item>) . Ox: so? tp sb BY se 87 | I 27> 4) index Lo) i l 2 fae iz 2 aseterting aude *) rap resval = Sonfed( val, acucess€ Te er L084 22 ash v descending ontes, (oste J Ckp 22, ze 22, v0) Te access she le Plemens Cinder oO) _______ sx" >22StuclenpLaPbos- Funotions Jace tested Tete funchlonshat unc jocaiinesied tuples: tenl), count ©) incles () s - ex: bp za 8s G2) Shes sp) | 4 = 5 ex: 222 tps indexts). | 2 5 ex’. 277-42 count C3) See: NaN SNEN => Itupettons that uoaan feaanested.siiples shauing oinly-teplecas leLemends fet} ssins : pe - a co getees LL give-tgpeta a a. ex nat pd = (2.3.4) (4 Se) TC — mia (4p) (244) [ ext 222 mar (4p3) (45.69

You might also like