0% found this document useful (0 votes)
4 views

Notes

The document discusses tuples and dictionaries in programming, highlighting their properties and operations. It explains how tuples are immutable, cannot be modified, and how to create and access elements within them. Additionally, it covers the creation of dictionaries, including key-value pairs and their structure.

Uploaded by

nandug218
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Notes

The document discusses tuples and dictionaries in programming, highlighting their properties and operations. It explains how tuples are immutable, cannot be modified, and how to create and access elements within them. Additionally, it covers the creation of dictionaries, including key-value pairs and their structure.

Uploaded by

nandug218
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

X=1234)

wstne+ogor
apn tupli anddea
to biLun
elemuts Neus
Cahinahion Con cedelihiasa
e Tuple
T2:3
element laut tcxludes
ne but
end incucde
the Howwe,it Step
lois
bem inde,slre
stcuds tist omnit we
Date:
:No
Poge
(t,4,3,4, 5,4,1,)
aprants

tupl= (L,2,5,4)
tuplI: +6{) The TN oyatax checka whethina

in Hehuple- DHsclasie,xehuns ale

Tupl Ruyoions
Belng uha ble in natn nlih lst
plos odo ngt suppnt such goaattsacs sueh
Page No:
|Data:
Dote:

Aonl)

min C) shall 1etNO taa elnont th


te s2,5, 4) manimwn value wm the tunl On the DHa
len(t hund, max () slhal0 Yehun he olemoat with
>>4

Count

un
o cn ilenn in 4 llo,a2,20,20)

mar Ct2

Quayla)
Page N

Pege Ne
Dafe:

uplo inder Cvalue). start,cnd)

4inder (2)e

0= (6,74,2,,5, 3)
We can cerbans
tuplea bywinq cumpariton
Sorted (a) K, Z,=-The tonsgacvn opeaaks

not canttbtdlorídaeeh
Paga Ho:
Pege No:
Data :
Date:

Deleksy atyple
The del sotencnt ia cwd h dlele atuple LJe can noB adel an glament o atule
Butwe Cen add an elenent toa o
dot Ckup)
lWe cenno geplace an clunent tn atuplo
Tupla baue Hhe tolloust oatuas Bet ae Cosn replae io a 34
lecennst emaee clenonte Rum a tue
bacoyt of Hroiv ioanuabilik YeMo ve elomontk ik a tuple
leut'n list tuelcan xersehe cocnot
Taples haue no yemeeoar pop'nethod
we con khd clemens in& kaFlnshce tais doeire
thange Haetuple
oeanalso cisel Hho in opaty tohoak euhatho
unelemntext ia afuale lathon cdichonaeyís arh wn0xderecd
|a hey QUe paiY We larn also cer to acichiogaru
as aie a nmappingltuean aseh of heys el
La setof ala
memoiy: "Raten'"Qchioray
We coun' u fuples in adetunaay cnca lauj
Gut thia hat pusiale uithfist.
We can eccess elemonts uttth an Svoe
Pege No
Date :

Creatng a dichunauy
Eauhhe mgpecd to vale The asoLah Adadiokany can bo cAeaked by plaung
ofaky vale ts caltacd as a hey vcle itema índé cuny bachets sepanakd hy
pai
2.Fala aey is seperateeh Fcm ihs vaue b a ce
Hne items Gne sepiaateel buy comas and he
Enkse dictcnay isenlosed oth cndy brakot.
Exangto Rdictiarwy
values noa4 not kez
4The value a deinay
e Scne

Aeeaked duffoant ley

lo cye ahe an
Paga Mo :
|Dala :
Dete

b(27- CTuo

Ni) To ade anitén to


adickêoy
dihfonay Vaßme

You might also like