0% found this document useful (0 votes)
5 views4 pages

Python Data Structures Overview

The document discusses various aspects of Python programming, including data types, variable naming conventions, and the use of collections such as lists and dictionaries. It emphasizes the importance of meaningful variable names and the rules governing their usage. Additionally, it touches on the characteristics of immutable data structures and provides examples of code snippets.

Uploaded by

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

Python Data Structures Overview

The document discusses various aspects of Python programming, including data types, variable naming conventions, and the use of collections such as lists and dictionaries. It emphasizes the importance of meaningful variable names and the rules governing their usage. Additionally, it touches on the characteristics of immutable data structures and provides examples of code snippets.

Uploaded by

Yuva Priya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

)

“) Thttrpacted Execetlvon paman tics


python onoculsd edo June bf June
E show
are fpund dug onocudticn not bales,
Data hy
Datat
q* Bx used to
“a 5 Geax a
Fou wk vaabte
a pie a aa bys
ia THe) Leis | (Reon
fo) o
4) Cumote <> lore numbeAs .
a) fnt ee a
Korss usnole numbers .
ROO Arye Jimit in python .
Bx:
azo
b) Lng. le
Jorg Snfagey indicates (L)
gris very lange tegen.
Ex:
X= joe TeOe a
1) Pleat: )
f used Jo dtou deal eee
EX: Ke alk
prinE CX)
4s
MN
f j py Complon :
. Cornplex 3. usta te Btore nuimbewn Bot have
« 6) Vasial> Q seal part and an Srna. Geran pour:
av Ex! Contpark :
Uoeater' Z =lo4b 3 ‘eo
wu e
a yin (a+ Aval) Fb deal park
Qpeu prnt Ce. Irmo ) = la cae pase
2) AAain |
& abing uw a coluckton of Choad Te
RA shes . ° (Ae OWS
Ke enclosed” ustnen q y
4a
ii) Length (panes)
len ("python")
6
0
z store) b.
rint (z+ Aval) 4} dua past ob beit dt
Prt C2 ag’) egy as ie
ee
uit 3
pe: an 90)
EAL @
genoa he
print Ca
oukpul
10120! 90130150 q
401 ri)
+)
{uple nce Og camckin &
ptornan pos eae gppoxolad be
comme Me
immutable meas net $Y Ine AU 4
bo Sole (OX) cannot 3 M2 value 4
Aan
ex Aueh
a= (100061001 HY» 50)
print (a) 8
aie Ee)
) dchbeS
é
S) Gis. 2 4
A Ast IA a mutlalsle. Ord-2radl ep\iectuon 4
elements pplona Jp Squaw prado , and Corns (7)
gt & buna, 22 auays ib OC
4 hold dimiltancouy Jeld ae ayn i)
data 1 a Rat . Nido oak
, et ! y ;
| mows = 2 [rant 95) I } cal f 5
er pant (maxrts) a ish nel ; ov
;_ 90. 86-90) <I ae
; EXx:O@ “a
: 4 @eLy0120 180/405 eIne aamnte nia0
Gabel or?) print Ca) kil ae are IS he
” ie
é VAY
m ‘ Jo, 20) 30130150 . ° as
A £ aes a ace ar a dl 2
e
+) ye Oe) ery 4
alt “00
ees -plernens Ancien i
i comme « a iiep a
nal immutable means ” z OM) P| ae
pee tno Jaye COV eanndt sony, 2 Lie: 4
2 i yale.
ais
a ‘ ss huue oe : : “ke ¢
OF (10190120) 1405 50) Shegy
he print (a) (a if jel -
QuTpUT: y ad a" 4
0 2030 YOV BO
ae at aay
, pic Loreaay
a us A Collection 4 elements Jn dhe
yer Keng" aluo pair
Keus — must be unique
ust, be urhmutable Cc ditaing » numba, Jans)
kous vu
valu voam je an Hye
Surat * d
) value! 4 keoy 27 VOSS
0 ae
oho a g Koy
Koy ® » your & 4
/ Ram" » Sage" 9d, Sor:
ie
Qtudent a $ name" :
ae Y
tit) Booluan yalu0s JL ;
Ex: oulpul: ahh
2 ae 1-0 cca 3
print ("yoo") 2 Se
= cyunchst conpeoneilip Ves HP
Tae a} drey ar aqual » Dinwwoise fou: M
eutput:
EX: z
Point (5 2=3)
POU .
A) pid orary
i aA 5
alae us Q@ Collection q olemonts Jn de
Yorn Kui" a\uo pau
ous must be wniguo
Kous must. be urhmutalte ¢ dhung , numba, Jan's)
vals voon We onytinl
Synttant ihe
a Se g Key _valuos » Koy 270 ;
Koy ® . yale 34
ise em ns Nok’!
Abudent 2 Nname" “NROM 9 a oD |
an 4
srBoolean Vales, ie
a) ) Boolean vin HONS aaproent only hoo pe
Aint, dur 4 ae |
Ex. | sas
Kapur.
aD) gave ger O00 | comer, wr ao
ER: pul '
punt (573) #, TRUE an Eg
if) GBoowan yaluos Xe wed an i
Statements * : ~
Fie) output:
jo7a 1-98 cea, \. oe
print ("yo") >
== Qpualer comport doo V values ‘COR samt ‘
wal » DnUUoLse ove
pia ut.
pont (6 2=3) Pay -
Tau iy thoy ow %
ralePer ols naling but a Acsoued an
Localior "ie lore values.
you . 0 Vu ibPos UAL
you cam asi Valuo, to vorta ng +
= Qprraler.
EX.
Yak
Reales for harnene Vartrabtes :
Vanalte names unust Le meaningful
Must Btart wlth a Loli ot
Cannot tart voith a ‘sisi
Cannel we python Jeoyuootcs
Varratte names yor5e sare senitirn
Advan
toe ant Valuos 1p
Mole propams QO
se ei a valsno; -
Dbadvontago %
io on Ce
mustake
— Unoloscore Character is allowed Ex ttt total—
may Jeol tb Bae AB handled propsily
jb) Vastalstes:
a yawalte Uh
nares buk a Jopmued rmumory
clocabton Ale) AIOAZ Valuos.
66
YOu wom ans Valuo, 20 yartaltes dnng Hho
- gpualet. ;
Yoh
Rules de n Vauraltes :
Vanalte names must Je sreaninght
Must dtart youth a Lotter er
Cannot g@tart ucts a nurmbdt .
Cannet Juse python
waited Ree ae
— Unoleuscot Aroracter ts allowed Ey tint totals
Advant
Gow aah ane nD ae i
Malte prop cad
QosU to rvad
alow pail salton
Dbadvortage D oo
ge
A = oe

You might also like