fe Stai ngs
Stat mn
4 Le Python is_ shored Os individuod
eo contig vous locotioms
te String Indeoc}
Fou ud aed rd
78.
" ais Z
s+ = Tob eTaty los
>>. tT ocala
| AAS
Back ward
-4.-3--2_-}
(EL IG TaTs
Ea Thera Assignment — = lobed fcnal”
>> b eeele >> ats
2 0. ct he ie ae es I> SiavahbBlecghen.
‘me good” i
zagiat Marae
a ini fmebined 2. >>> "me not in “mebime
baie > "yo nok inetime time
geen a
iebike duelisdieo
= abe”
ue 4
"Ye "A : ~
True - :
=f : : —
Com Arison Rules "
1. Compared on the baals of lexogaaphy ’
ord ing ,_i-€:, b>o 2 BOA; J ;
2- Upper “cases smaller than lower caves, |
ier pom AOE he SR
De >A :
Tree Ze ;
SS ig See
False
ord () — Takes character ywchen Asc |
MVOAUA_ wii a a ga -
chv() = Takes ase! valut, crehiers charade.
H String Slices |
a:hJ :
Cirelusive) stank 2 Cs stop (exclusive)
fa SB a all
i > elep
UX LNs value ~ prea Oye,
SSA so ag abl —
ee 1Kk Sii foe oud af wong, doesn't: give exeF
é et oe ned en
ky
>> 1s = Saba ; fseioiens
>>> sh: Saree 4 [orbs]
abe” lana a ene from a, as
> {881 py ata afb
de Be tg not. ohwla wight pat its
»>s [3% aio ee Pcsths Ses
el — me
>>s [au toot) is Ec is we, pees sare
PKs nothing thing bi t pes left.
Ds Ce:3 a) 1 y eee wilh 6a 2.
eae
# a 4 fone tons Lint dageaks nap
Syncs ee >. len fetad> lent) sgh a %
[on capitalize U
2a pela + 4 staag Dnsaptinline (@)
| 4 Sn eee Y te. find Misty aha step)
oe let tala ins bance Where hale
= sal Ried ocetunenss —L, ct
Fores iP -okh tchavactes
te 2 sky >: Balto fis td pee —
a . . Gi aalgstOJ sr ade he tight
cy eee7. . isspace () :
True if at post t 'olv, & oll: chorea
are Whitespace -
8. -islower() 7] At sen Lei All chy
9. -tsu per() tes ones 2:U PP €or Calgg
0. dakad. istile () 1 tet repectivelye
> "Queen". fslowerl)
a > "2 queen isle
Tree
08 > "2 aveen supper) Hi Pegs |
= ae
Be eee Tegel = pr Ae is ee toll a ed .
ei eee re bo". isupper)_ sii |
_| SSSR ae ae
: ‘ febe boob ft i e
| __eS SeCom ie rae Ed As t ~
ea LL es eae at SE] big
Jl. géstr>. Bd,
fi he) ade
tk tee stb ort Lal SD) —
od ie 2 Za endswjth ( Lys
(pectin. st int elf) —
e wie Sete: s wapease
WT Ae pact th! ° n (4sep> is
ee aie ie pb Pa)
73: t cick
iereiyy Cn toons ie ants! “pane Lapel
Z Aaa OmS$. + count (sub [, stad L, end JJ) |
9. , —- Clebe I) ne vrolus hilespace
{Cah possible substring are
7 eemoved
pe mega J shoiga ar’)
20. . an Saath eckoeie mecha bl
. Sse Ss Sketip fl sa taconedaee ehh.
22 . indeor (. split (<:s stad)
2) aefanle aha SERS pace
= aE a Axa". SP 1, pals y_ Lo \- aad
Bee (Fe apa es $$ |
# Lists : =
To eee -
= Mubsble -
ye ' =
| eed Ae cede ney BE
| 3.1L = Nstléseq>) # converts te.
Ant = Vist [input (“Galen Ist: ")) ge ieee iba
Jee Ste Vad (oaal (inpal (Coben sk tshos “Dy so
Sev glaathesy blsList len()
indencing & shining | nell
mii de 0 peralor je
betvichilen atin ab aephation ~ ?
Storage list ‘
= Sot objye chs larger thon thers a
Sc ot “each: }nden stove a weference 4
(untilee shor that stores o. character), >
Tlem assignrrend —suppeeTep 2
eee = SUPPORTED «4
We can use: ‘slices fox jist modification 2
Sy See sil 23
»> L[o:2] =(i0, 20] —
LS [10,20 ,3,4, SJ
Indeair fow u aval <5 =
a der, iste fi 4 zB 4
38> Lo] =10 =
Soy, 3]
Deleli Elemenk — List e =
del [eshiees] oe
def H deletes whole fot object
1 =I eAren el
Shalhwo (Cop 8 Deep/ True. Gop aie
DS\ a besibes t ' MPRA Ne —
Das Licopyl)
List — Fanchons es
1. , indes (cihemy) TP not found, rae
2. dppend (Litem >) Lote ashinciake,
3, . extend (<\st>) a ee<—
}
A> )
a fele, fe weluans volt]
5. . pop (Linden >) eye
6. , wemove(s clear 0)
$. iste count (<1bem))
352s lere
1o.. )
1B. So 5) —
[4A ~ sum Sate tes
ie : = sagen
cmemb exthalis. ms
ae ete
Trdt. Them assignment —NOT suppoRTED
Note ewido
(3)—> treats og single element
(S:)=> treats os a tuple
tt Tuple Funebons & Methods
1.' len[ yupdt
2 ae he
Ry n
4. index > deme
S36: count (J element i 3 eee a
6- duple() ata ———
__ iol
FF _DICTONARTES
—Unerwd aie “oP feu key = pairs.
nor 4
seq “er
coe Al Pee
F_ Ace “Elentenb fe Ho.
3 amet ont it ae i = Pe
4 = All Siem
In
ee
i QZ creluxn3
_aalue ton =
BY T_we can Sdowuthis.
| Xk _. pop (chery dee)
| DS dicta [nes at, Tene: ee
| > dick. pop (‘three ”, “plot Found Pye -
| Se salto aeeead pie dees 3
ee cncking Bo eeietense fi rat ite oe
get (, £4 Lent if nat, ia.
>> D>: Sisto, 2 +204
SD. get (2)
10
$+ >> D. aet (3) a
None ‘ sf
XK D+ get (sere ioe”) <4
nok fourd —__
A, ° Datitemat a) aaa Se ae
D> AG 10) <2 ils an
he . alten (0 ———________——
sobre sy 20 POI ennort
i > D. values ee Beas een
Hf oF HO: soo} oo
Is. .u dake ( 20 and “ley 2
ae A oe lee er
$4} ~ + i = J erential ela tei =
2 a eT eee ie Se
fe oo. ae se ane’