Installing Python
Downloading Python
Sip Belo nalg hn, Se
Sisto ayn orp
Pe rcs atta ccte teem
orion ape Fiew A Fue Att Sees
Synth oo now r,s
tot or bt oe pg ik "Wd MS ar Fg 23) 5
mar pel pen pea con orev 66 apm son aon copa
Instating Python
fa Py ene nbc os
Torn
Schema our
tna hw rome Nea a
til Croce QuestionsComparison between Python 2.x
and Python 3.x Versionscinereus 23 corn Le wre stme
range) terres) poviene tand areng(} nance esc hye AM,
‘Sree
Tru) eens eo eo ee ae dene cy ce aa
‘sees hace a el eet eee ee nel
woe ren yen rept ree
Pls Theat neded capt ee Bon ty ee
pe
{op nt: rhino at pr
ng enh ion i hye owt
abn xeon: Whey 25, om ie mecca i i ing patie
Intra etm wan eye pps npg
‘peer
“INI gin sem) mao pe oh rt at) ha
cig eh iit iT yn 2 se aergnsowonone (GH
i
Testing and Debugging
BB erin ras conti str 8 Sig ad it hr
| cmuoos tes oem, Yaad sa on he tre ae
oe
nc etre ethane sores hart
separ amyl wa bahe
+ ere feing Reyrein venga pn ho
‘moda nc The pet ung wal eet ai
ay TESTING
Binur
‘ce Si Sin ed vi open
rite ain en ee rn
M2 DEBUGGING
eh oe pn edie inne th cu
egg te a te gt
as teers ot Cand uted pas opel eraser ney mp
TE see ery nose dma" og (roo na
Freon (opann epactng eet tanta py en ede Caer
‘Bivona my non Sue perenne mesie ne
Sap maprcneg aye néen tn Pope tn aan
‘rr eit To ig fn nt ei alten any
[Pétcee of orvnging Rete isan Th er oie eeTBE) ren perenne
tual Ae Th stg nee atmagepemmi ls omfg
* Sait Bn enn see end te otis i
ee
Sec See econ eteangestone
aoe can eae moi pope at When rin cor ae
Sore eee seen nee
‘haters ng med ean bony node, inet acne t at.
Sree s ensue eae
See
‘ceinpatame eee
ene pm nan pte ep fp in se et
eth sleet rane ot ing a Wie at
4S
‘ey pols remembor
+ Fett forsnd seep tenet es te bun sia
heat tea
+ Fi tin et ce eta ete th i oth
«Menta i ray hg ot ge i.
Frequent Ere
+ ng gr rl hi wal ne mtr se is
+ Fe pi when ey cae pete
* Inna tenses epg
AA Debugging using Python IDLE
neste yo Ls hn dg hy ede
BSS peptone eae
Se ntl wn ot dat abn oF
ome ined noun icing ed[PRD me mmm
eg Cnn int tan Fg) Wt pe Ym ee DEBUG EN)
Sn
ciao
reli rep pe
eye an in)
went pct yn eos
agit ae.
gue MA Brcatrg Pe npn ng Sp Don
‘eee ft Dn Cail wna
etige est soy
Shwe Coun beter wt Moin ne
a«ite mast
Decision Control
Statements
[Etec gama rene Yo
Tree) Futon = Nad Lp Sak Coron
s00) Po San» Thue Satara pe
{41 INTRODUCTION TO DECISION CONTROL STATEMENTS
ae cel ow pes pa
itor gen na ran eit ey om a ena
| a ear L
I ee Paes cael— ———
{42 SELECTIONICONDITIONAL BRANCHING STATEMENTS.
‘en oes ys em oe rt of i eta ending on ae
‘et oe ed om Ta hy oe ou see sates wy
‘Sin sem Sch pee ec eed ac eo eon ca ae
in ong ets en up Gt es le
425 4 Statement
Teme ig rie
a tt tag
ive Rate
422 if-else Statement
Feta cpenn bed e's nn ae te eae
Tater sow titers sted chs
esses Secten eet an cee
(EE ran cones thiptive
‘tpn ess espe
Deseret te ie en ll be ato eterno ale Pan wa
‘nana frm stn ene Darla rane ory creekog at pomp eer cer ester he ise
424 Sf-e1st-else Statement
‘in ao eh ts
‘Tivcum eject ee ence
‘eee ee eerie aa
pe ee
Sonsenevbee teresas a EHinGia am 3
ee ee, piace
raat earth Prunes inten sets) | Pentre ons
Sey “e1st(0e8): [coroound npn vat
traren 4 tropa nt mao st atc Pe re em
‘Soe lagen so py pne sme ye te tm eas
‘Steers teste genar ue Scere por ocean ere at seen
‘Stars ane te tents gas Fat Owain Fanpop >= een
(Gace Second Drape tvs anda, en gros oT On
Bote pocn rot
ena Fring Poot Natrs |
facia baleen tnrmnrnaigeamedepe epee
a "Senate etn syannug me Sapna et ied
‘aera [eer rE de anterior se
{3 BASIC LOOP STRUCTURES! ITERATIVE STATEMENTS.
431 waste 0p
imei oss
Progam £15 wet roar cleo of ante euaton.
fs inner eae 2)SEES | BB tna « tte
=
se zz
Proarem 8 We program
RB ite nt ona ee predher nk ltt ay te #99
Frame
ese cbe of pot naars etre pees)
econ of tose eens * Seas)
Program 42 tes rogram ren ener enaunred Fin e
‘Nerge poer nasa sgn mir oe oe
fring ste i ot Ate)
tenon ott OP terrence ect erent cate aniTreen Vins ere errs Beers ea
Progr 424 it prog ord chart ancora Ate aut he
‘taro apes lerne, naan ne by eee
eh tater any carter")
sneha of Somresseearstar ae
einer of weprease tr
tet cee of era
ieee)
Sheer
ruta sn of wets 6 agit)
Progam 428 Vr reranto ete C0 fro umber,cone nh err a a yt
1 ering ln eg tet me si ei
con eee the me mr genera. Hence the ended tsk will nt
192 for Loop
ete lame one poi mn
hs pie cnt Thee ny.
‘Lone simi te lay nae te pat
‘Eo cy ow aye yet Teer
tm a neem temo memati
hetero olin Pe ct
ote ai Fy se nb
Faeroe
Sanco eer ee are
ace a ae
Fey acre catego ares on eal aa re age Se
daar te ea cine | ans
Cpedamsth season”
‘Nhidefae tennant if?
=
Progamming PebensSimple CalculatorGenerating a CalendarFunctions and
Modules
kf pid che ge cde bo prem i pie wel
hn cb gnc s Gay gine wih
sis age etch, hi en
fos on yee reed ta ks ares ay pet
or erp ee ec sit ts mh to ee foe
oy sao ns et (see nae
twa a i ici) ancy oe Pe ae as
neta seh: eeepc el act ns nee tae ea
Scien os SnrMr mgannig
511 Need for Funcone
{etait uo messing pn to mm ch fc
ee en eae
ieee aan eae aoe ee
Sei ee Re
CS ese map mete nromeeaeeg ema
Sours incense ene a Sng
‘ete ronan
a ee lad wee he ny etn th ws ano
see cee ea pepuniics tyme se ese Be opt
+ Ae eo Ct epg ose, Ts ee
‘SES eae eps me oa tm ne bo
deen eee Coney cml cn ites ep waht
‘taytetopce ve marcos ted a
‘Shoes Raw tex Se
152 FUNCTION DEFINITION.
‘A so om bend ck on ht de an
Srodtn giver dares Hower rey shortest
‘its aa a at ts
‘Sie ton nel ng cy i,
con, at eet meri Ke gon nn
‘Fol tf
+ cnt i re nt ut ie ny th
Se
Lo an ey mi aca og How mn
naa wi eee eet
Telekom ne), Tenancy
ee inpepsms iy te prpmatn mec mes:
(See cree tea ead
Tec ial getereeetier ment age co
‘es pe he ton Taye open es ee pn mee
Poe eee ete |eel
eet i eae Tac am creo hen
‘eee ssigrscaaseniaremss
(REET ies cen diss pty
veto he ‘i rechten Th eens hn
153 FUNCTION CALL
pcp aot delemelarbetr raed
hater aleetrcinee tof, Wonca
‘setral at nin Once io teed ef spn king
‘ec Tes eign os sauce vane ks
‘towed ee, phen
Inte taco a hse pet ease pAmama e eing ae
521 Fonton Parameters
ieee cow's rote etnies pmma rere cane ca
EE hea yar al nn rcs fens Begs
‘Prensa open icin dn ye
polos 1 remambar while alin the functor
enna te rhein ta
= oe epee se a ee at gill ene1) remap
+ yi epee sine at
(eestitsmap ons rire
(HEENIEE ctr cee to pris nd
+a us pe epee pid ica a epee he aon es i
(HEE rr dens i i pe of en ts
+ Aum may eps in te apis hn th a pee
(best ncn be pel pane nd an eS oc
IE re teers ny Sp tee nn
+ Tht ie pet tho
+ nto tne ate bsp aoe wie nea pg Fa enc,
HEE rea inner i tos
Sec in ter m,n id re pl ener
54 VARIABLE SCOPE AND LIFETIME
vi et sy ry eer oi
ithe pean taut aonb TeoSRE) rer rarmene
+ Spear Fe epg teh iene re:
ESSEC ata thee
541 Local and GtoalVariables
Poe rem Tey wee agate re A
‘ponies oa a gt i
SSSI tle mie ap on reat
Satan dtm ayn acm Ae pen ea oe ai
pean nn ee
‘reece hs ol aun anon bea wt ei, Ae he
er en leaf ot actenmwhhaced Kes
SESE NEG Pathe pec enna toe tc, en
‘Shenae open ee we sin
(MEE reorient strnetnoa aint diss EOE enn see
Prorwnmnat|
spies sere
sce sg EAT a crt tet ne gang
Spa aw nef eid al
‘Tefal i ern ene gl an ieny
a saregae quien pimping mega N
\gebaatitomatesc eet er
ae cen ae ae: fries srcntie omnia
I Por ct ce eter cece
| ‘ht mo mee i ee nt
TALIS hema fs he ome ee
(HEED eves ec in te oti
5.42 Reslaton of Names
‘iin nap enn ‘ated esc ence wc
cece eet reed
{ot fon satrrer tm en ce ges ewok
Pes gitl cyte rs eee cingYEEEEED 2 ror eens
(EIR rns sinter i td ib ents
“usm edi al et ee of ba ri yum dt
Troe en Te toe per bw us ca
(MEER) rr sess ig ca rie these at ob
5.5 THE return STATEMENT
Thaler rneshoe anew teri
‘Slows ayer eed ie Oey cn
Sng nen ee ot ae
Eis havin eernemae ee ang wi ao
‘Seem hr stig eb cy
“hci rnin io ein ea a
sesh ng ime ne ech ok
| _ ical ieee peter ala a
‘soa tram asn Ter vm
Progam we terion ich on en ng cle
‘eran tte ea cael Te pope een mewn camp aes oe|58. MORE ON DEFINING FUNCTIONS
enna dct te pon ein, eee sis sn fn
SSeS ee ments Nes me Pasa
[Sateen
5.81 Requred Arguments
‘eh dy eine ie fl mph mpd mnie ee
end tn ncn tn Ay une opens el sd
‘Si mith emt pen tl nen
{ots dares cele?) gen onan are eT cn eta
ghee peng Sacn e
562 Keyword Arguments
‘enn ci ei ag
eee aerate ee
Sxaeetlagee ort Wlete pales
‘ecm atc aueed rerio
Searels ecreneeet
en msec le in et he ey
Su tyaip omen
{aCe il chop Tat nn oeBE) 00 ermine
Th dt ae wa ue preying ire pi) a py
PS 58.4 Varable length Arguments
‘Soin ws rman ma ct cs wt ey yee of een
HIB Aseptic i oR
cerns so | Passa
urn (ees
Set sonora, curse =“)
eine? ©
ae 2, sri te ie
‘Scheye soe) 2 tert Arum fr cose ommee T
inn eat en
feces te etic,
Pine)
(ireeatoar, Ser at sere esi ne oe of Ages")
fear ard
beinsors at)
sisi eh
ey potts oremembor
eee
oxrur Social
‘Sytner coat rg foot sta rn
57 LAMBDA FUNCTIONS OR ANONYMOUS FUNCTIONS
(HR penn etn nin pntee
+ Lame to el ag ih inci Re er), mC ree. We wl
(Gomi ine eer
eet shai tres Wc
(HEI) ro nd tn whan ny asin
c——]+ at ee al at ei gn gy et an ge Lak wh
Sigrid toring eg
TE or etc sen cine oft ms
ioe et etl eee ee eee eee
ean copy retin pe
eee ene as eras Spe,
er
st pocomoerarion sacs
enemy ee pen ete
ae ier
Bese sree eere ae eceeeiecaear
parame
‘fre yh lt sat hfs ly om pial be ing wih
SM toe ciean sg ing Dove pra he hap ao
seta por nae ps Sen alr ws a deo el
{eae boc ah it spd pin: oh othe oi
eee
Pees aspen
ee
‘ierescere es
epee te ar rca
Perea ne cece
partion
[5 ae1 Me tm wien arn br ip ete, me cacy
cient) wil a es et
- Nisa ieee ae tc py‘arn 5 Warm ican ad nth tt
ss cpa the mat 9)
fog oan)
een 6 ee)
Program 57 We pegramta sei silt Suppons he cst
SoG i cd tetra rate oon
Sh tneonre i)
= Relate princes me 9)
> maetetiare he maar
ete ce sn oir)
Enter he cee ant aos
Program 58 Vite program to cele alum of ding etd aru,
Set vote nt)
Program 9 Wt prom that congue 0)
Feet oer):
or Ln mechan)
Pinecrest) = sete)
Progr 1 We rogram ovr sae <2 27+4510 RECURSIVE FUNCTIONS
sri ons fn ta ss et nk a is
‘cenich denen ey ant anc equa aac
* toscana ese ey i gy te ce
+ ah th elt hand vil ine by Semin
(Ghia bpm fe peor dnt sy aoa anaes
fn en os re
‘he at sun wie hie aif bn ing Dn
ee kien tye aa Poh
rg em, Theea cies ned Ur tng ep deme oes so
Eecmape deseo a tucirsrani cae tieras
“ee28 ome
cite ter
‘Teno, of mend anne geo a Pa 5,
‘Ses resent csr ean le
(sctrras orn oe, ma
1 Recanin cnet cia bat wth al of sce ca een ae
(HEIR re aaa te ss ofemoruiy
ume some om ete epee
‘Sip 1: Spy tan hihi tft fo angi a
Ck nm cn es hod mi Wi ae eb
Sp 1 ie ren ite ner pcm,
up tn tan igen,
Sy 5 Cob et of hci.
19 Ronen ef ce tin,
S11 Greatest Common Ovsor
‘eee ena if 0 me eee) pe ine sah ae
‘Wann GD fro mes mare yg as ns
£20 ee ot wo af di ide wel.
ese) wih anti et pee ae are grt the ng en
setts 8 tbwoeifs «8 orange ce ea
Rome cae
fon)
ea?eed
=r as
{5102 Finding Exponent a
Be devel eeu onbesecn Todshnae
SSeS tan snaran agers Tt ee
{seaman htm onan fr Now nl peared
‘Pham ate ber rT oo rein cane ees
‘spe fimal 41) an) = 1. Sa nen ence Th eben
ny bi eds twa pea Page)
Westin:Pra Teter meee ep
+ Raya sn eng ini
* Reon aed ng mck Wee ta ps te nt
‘Spee :
+ Ui acti hs em te om We
+ Hi fd gh pete a ig ii,
Comin vgs frei ef rea tinal nes nl pe
on
Res Peete eet tees which he oii pro svi nt
fs Sera tne ov oo
Fog hoy hi ts st ne
end amperage ee‘se hn wii ym tr eae npr ee
(REEMA) Pen show ts ern gre tet
inet rif i a pid Fr ul npr ee
Sint crt om sh hy ie
fpr reset cn em
euoman navi dies mmeg e rwed Ts py eget
‘eenmnic cera ape cry caLEED ce rrvenie
yeni) Yon con pn og) fon ton ern pon aa
Eaten iS erga a ee
{Rept Ms sys gure le of we es theme 67 and ere dss
nf sen soe ie tae tt pet set ped a
va Gomly enact Mesa su yet pap eat
ee
5112 Name of Medute
(HERI) ren rn ee he nein tc youre rc
‘hare patent fy ai pa ny rt
ogra hl desing
‘sovan cd fon oe nacre mae fae
‘ensayo ara es gti Po
ureter alae es.
‘hex open nt fiona wt i oe ren los fl in te ie
~ ne ainet pret
rami
sein
Pate 2s dey ele ram cage ate
> seit) Las
ride stn)
Sen ee
ee aaa eee
a cee eee
ose ree
ee
See she
tee, ee eae
RD yee el lg on a ed epi sdred
5118 The Python Mode
5.116 Modules nd Namespaces
se re.
| rte:
ther rae
ON Tip x)(RD rmemeoamine
esa Slob sea ee men aetna
he a ttc ey i a yb Te go me
etcetera ng meno tem aac es OS
‘Sem ry et a).
See i ne, flo aches te a nancy en he a
on nse ti emo ee et
Cerra yas acest mae sunnah mn oe
(REMIERD reves komme cain i en
treats prem ch ac ih ae el meso
rl nd rn en Scot i ot fc, ae
‘erat tt fc at We bw mt ean ten
Sita se brea of An
rule Pvt Varad
ee terest phy Se ise eal iin arse
Inhouse ect eae ni me ay
eo wt th re crs (_) eae ine aie
ie ti sow yn el fs co
die Tas hn mina ig apr are oes ale ino
Soichiro
‘Abvarngs of Modules Fy in pie es i nb deg Th
(Silene icy al nt a ha ogee my
‘Tema armas anja epson
Key palts remember
Rey ele pas ee niet ee et
{Anal rately nape oma ame ed
{12 PACKAGES IN PYTHON
‘Apo Sew ey ce th ode ad tra hn Lhe
‘Sitio ty enc omar Pee,
eee cy Yale sn a dy wi a ery 3 rl ed
“nip. Th ta tr aes agi a cle ee nly a
Tacit mes re vege atk natew een
ey points remember
eaescgae rane,
Bee ere (a metas iagicya dn aly
“im teyorttrror exception is med "es
Pee et a tain aera
eeRED nn semen
«Paco ean ee _ pnt ihe ini wit ene ame ote eaey | §:4 Global), Locals(, AND Reload)
‘Sting ite yi Te at " Thee) nd elt a te etn Stl ema
(ihn ct en mca page nes campo wm
‘Sted dread Theres eet pnd ta
ad
+ act lle is sn mea al bl fn in lb
eee ae ere tae eee ree
Fee sere een coe
_ Seay erence cee en notin
Gos esate plea gat nyemnttcrion) cng
4519 STANDARD LIBRARY MODULES
Pe aaah arc rd es
{alae eth yn Na peel
‘ind an acsipacesing, subprocess nce, cat om, Ocest. wists, oh, aero
‘Cah a ihe al pion ig prime om meni |
‘geen mig om ome g5.15 FUNCTION REDEFINITION
os
ings he” Sun ag ob, Jot a eects Pan
sUMMARY
pecan mee
eee
peracetic
es
eee
care area
Pe eeece ee
Ssrmoncaeeae
GLossARY
tn Apne pel ad
‘mr mas etic lp
‘Cea ep pe
Sareea ek—- tern
ear acand 3 he tc ng
ae ee
1 Daidone abet
‘unten
Test tees
‘gia
yn ea sho yon ne Hsin
a
SOS tee eta ae
‘Tenor cinemas iin
1 Src pe ht
0 Bette pee
1, Unban ne pa win
Ltr
Seneca memes
ple Chale avstons
(6 alone Ce
Spey cate
tommenes (BETTY
Soars
pape nie
sere 2
Seuoiseetepesmre
0 rae
© nr: Ree2) meme
© Sense hear
“Rica eo
Ractanacrasr remotes
Programing Probl
Speers yes mss
REESE ced mm
Pie ee areas nt
Sat cage?
Scceicettetrarsrinmat Sow ae
Se
ee— ae
ee if Pe is
i HE, BE
til Coie Questions
Functions as Objects
AS] INTRODUCTION
et eet eet bets ae st tee OT yc
‘riety hn me cig wt nse
(TONED rn nse
“Srv Pein rosso ein blk sy
GEER eye emt i so a ean me feiTower of Hanoi
‘ett oe mi ai oi,
ewe: Concaiguc eS) echo aed
oes
i naman oe nko
‘Ise marty ce shove eg
‘Newitt wine enorme, A te
same pai tennessee
‘crate og fom A el a eee
‘ong ag) fern paw en oe
‘tet op tmieNsaowniiac
"owt apne emp e
cotbewnly nme en aces pla) esosShuffling a Deck of Cardsmses ST
“mmm Python Strings
Revisited
| Open” Bakingongheoat naFunctonss Sie are,
KE emer
200 Concepts ecm Opens” Conpreg an rg Scher The |
wrrooucrion
rime) ner Sn tte
Primistttta) “ina ism arson ht vty toa tar
etn sin nn Cap sng ea ec cite ate ie
“ereing Sing: Aw oy mnt) ft a ate
Type! sig ices na Ses to
1 CONCATENATING, APPENDING, AND MULTIPLYING STRINGSime coca tego)
Pane
er)
aioe)
ees
poets
Saar
mao rece
anor ear
So ee rece ecen
eam Hee
primer sore)
MBB eee vice enn
62 STRINGS ARE IMMUTABLE
srimi’sert fs =, eo)
rim ses ie aoe)
reeset is =, stBR) rier rogamning
rina of te se Hate)
rite ace concretion “srt
finest = * we)
site kecten ecciv nan Ner nye pemseonpsetbe fliegen
[BI xeon ccs em tin Hoven cde ee
‘eye byrc
62 STRING FORMATTING OPERATOR
“ccs see
rae a
Te se Hag i fra ig smi of» gis of ton sl cmeron
zfs Comcinacnt wi meacsdSpareo as 3e oe
(nino «5a see = "Kum, op)
intra 730 Ag 2 Hi)
Seana crea
(pees aa
eet rtnecre arty
FEM net Leute
(eee ht wpm ene, mt
eat 6..Femating Symeor ula ne cect Xo ee ee
Seok Exerc
* Fang gonna
Socks Sutra toe pt oragentan
(HEI are py pone oa nue witout ing mating tances
forint ty "Wey 12, Wty A, Ae 15,
ves son, Wes)
Flex aetna sn stay iee aie 8
se se)
Pine eat acne st ssnsracsnersnecant § (3, A, Je
greszarese
geeerer
RH cian ar einnnnbeineonss
64 BUILEIN STRING METHODS AND FUNCTIONS
Si recap in, A eer
ecco eae
Tele 62_ Carmel Use Sy aoe
————————
seeps
ram etancuiineaoe ans fierce)
ici ue os
ronan ete)
oureur
urnaBB) Pron ropenming
one
sce
tint, oa
lest,
vee
‘ing Yu cn cg os Gon ns
feminostgetesny one
Sacco
Se
aeaeecne,
Ecevaonpicret
Suaeisiea!
Eee eomaee
Sere Saas
(eee ies
te spe
Pimento, 9,
Sere
ier inie a
Semon
ssa)
wise
sae)
seer
eee,
tear)
fare netstat
cifmessecs eso
(orca we Pac
Seeetentranesent:
‘Sieochnt afar ooecce
‘Stee cnr agin
Prete tent)
Prise tgs)
Prior
areas,
eer)ate (Cot)
wore
in
Cisieheltteesen easton
amberonesrain no)
amet a i gn
ema ne gs
Renomtat trp stinace nae
eros at ey enna
ane wag eng
‘mca ae
rp ati
SET a:
SSteengenom
rime 230)
rime toe)
princtewone)
Paste ora)
eimai)
reenter)
tries ect es “F")
rec towee TTY i
0 oe ieee een
‘aapceat) Tage cape chance ser = "he rad Ie BNSF”
Mpecmecuncwraarerinwte finan nee
feuncaniny —Raamestectubargesnunnsty Ste anette"
ime samar Shem” iccatepieey
Sates cue oumur
SimGis)—Aautaopeatactet etaetn rn jn "oe Br)
retSitirmngscaimn” sh i
sdeniten Patra mateesorghanit Tes sats”
Fikcotiemertetar
mtg oh
Piotrsergc se)
oumutFA) re rogemening
‘Pi Reig yt chine hc
sie negra pnt nn nen
(GIN 2 see rn in
‘he fear tgmce of sess Sara hon
‘Seine nls wet ng has pnp Te
Sorel
sr steered)
ein ok sk
‘ten ann Str Plants nema! apse)
‘hsm ane Sev, plnets we ans on spe)
Cot aa ey“ i
Fen RS a the eS
HB oisterenaea nn mana ae sat
65 SLICE OPERATION
comes Yl
‘tine ieee sitsy nies! hci ete rekon or Eee
[51s ean cample if we hve» wring str_= "Pv ten he nde of |B
‘ling we ste by i es sn Ont bo
Eee =
Seek att) orate artigo ne ad atti
otter see)
Drama} = et
meow) “yr 2 simi ose ae
rmrartian 2S Sse tai tp Se Pct ne
urna arenes Don
“settss) «ne ‘St geo tra hay
Teta) een ear
feta + tne [Sarre
So) een
seth) Sn
ee
BE sean een
Hegre +cat) # dat hoacee 1 wean -
fee esanea ett) cea tens eae256 Pymen eating Pn Sra tos
poacaeiea sams
teeta) 2) 8 sunt st ak ee at races or ace
(treseica] 4, Sera) fab ure peste wot eon eos ae
rests) = (50-21) wearers frm ein ape scot se ae
fees} Sete
ret] = nang fo ras wt ot eee
yr nf eo des end Bp 1 a 14 a lin
ee es
“ate te le mp wag esc
[Hr pment ia er
telecast)
Beek] ome etl
{551 Specifying Stride Wile Sing Strings
Intestin you caapy tpn ar ohh ee enue tn
Prine 2 sel) stn otra ot
rintst(ana) «oy seat) “tm tae +
Fiitraanay 2 Leta a} 6 Wiper acne racer
Fum(hefuania} = Seta.) ¢nupe orn) far natn
feleang seme te
Sertzassa) oe
65 ord() AND che() FUNCTIONS.
ea) tame ACE def coon te et) Hin tes
eset SHS mi ot bang ei
rae Fam(eeteny | place) | gator)
Pmierion)
oor our urns | xu
{7 in AND not in OPERATORSSosefthae mnogo prea
“aiestonst teen sey dnc. Talo ie le
ia SurgCanpaon Charts ad et Oechn Seen weit cane a Yc ah te
ORE er cessing i weep
Soar ee Saeed
Se ieeeBa) ree repammine
ioe = poser
PROGRAMMING EXAMPLES
Prouram 4 re roman te rt in lowing pt,
Progam 82 we prog ta ue ne nd PAN card mera nt
‘ig icrnatlon sgt con on prt as
Motel nes Srey os cs rel”)
Speci so-tinan)
rit isa a ed er, Sry you mat rece”)
Sil intr «ates:
Setter = mengetatn
mca) 9, ete)
Program 4 vir program ates spe) epi mating ing,
Eee 6 Se ye, mee
teeter sest'))
[ne st ptt ise, ar tp
‘ln ho ener i's "at ws a ak= tpt tte th tract tobe sired)
aa
Be Recut ove ath gvlton do yu sant tre cometng 2")
Sac Steen Bs)
Ina ing eer tie an ining od
Progr 1 wt rogram erat ting
ae rere)
Pe eee tig to ©, rvs)
rogram 42 Wea progam pa an mal pit om ih oma eee
SLAG Tinetscrtces) eseace urate
Sect Meistwesn
frie ort eben 8 hgh © waster)
Teer ens rh econ
peu sirname (TN
610 THE STRING MODULE
Beta, oa)
"setae
SS a ee Ew, mee
Paes
bss arti
Eases Moreen, tty tn
Ieee et ater, “tower onan ee
sae rey ae sellers wssL tera ae pee,
ee ee a et waa “pnyBE) ven rooamnie
IMME oven sine opm nse Be cass ‘
ition curr a
Sige ae) i men etn i eee
ccs a it re fall carcas tn ae synaete SE
es | sms SEs min
SreiRlawiny |) pee eae iene coe sas
coe crripnimep tance erste Facer oem,
DEB p+) om 80 ype ofan antecedent wate mac
ronan)
SSO att Tae tty innate fran #eptn te's
(iets dna os
o
etek yen ection Inking whe mewn pie
re Enatd Mgnt i. Yar easar wo, bes)
so, Segara, ames tate, et Me, ee
sch ta, es aruBA) rn Pring to sor ins
iene
ps mu eri, is Si
oping Pa Sg wh tn Prope 7
eerste ta cee un tcc acim ere ae
Remuryget treratas ee parm oe peu mss earn oo erent he
ren, “st reve ot
fencer
once, “so prt Is Sr)
denne cont eno gi alt Ona meri,
vert ean omenainolic ee cma ron
en mame tothe sel of pen 1°)
Presliesared)
{TEE a of en
Bisse eae
11 REGULAR EXPRESSIONS
RB 0 ses re conn ns ret ea ee as
coe ae
eT eget a
reise Sn hes
114 Thematen() Function =
£112 The saren( Function
remit, stein, a6) (Geese rng ies)
vestments
veg st le
faigram aie ie ab 8, Toei mee oe yu ae
ee tars en cs na me ah
Tobie 4 enn age
Seige 2%
reer tin =
“einen rast
ier comes
(Sk lponeotare enous113 The sub() Function
‘es se tore ic pti ig ape ih te
on of 0) eon th
Acconci petra rig ie,
ia pcs tty mi vd Tae ciel
Ine se pn tn nce ac aca eh i
4114 The FAnds11() and findster() Functions
(HIE ser ders eso isan in
re een tre «fe el ptr
oe phe asp do iy ne en
“einer ft ene nea fc aca ech oh ae
xtc his neanbe lp boas nope
(HEI rovnn sno hee it cten
gu cng i. rain Sy
rig denn se a
aseHs)
{edt nde fe shen matty iem2 nor reaming
tensmarnoaee
Ub totam re ua By
hd te gy dt 3 ts saan ee
{12 METACHARACTERS IN REGULAR EXPRESSION
Te yma ie 8 hb me
ena wan,
ooo
Naouaranannes,
‘Schoen n
‘nes ey
Maaeene nonce:
‘ie 6 Nace weno Deen i acne anton eanaona3er4
owas ro
° Soestneret atin ater Taare
eer Pera stot
’ tected oe eae WP =~
one ne borg a
ota sy angecnrcet oats om Sarongel ts
‘oman ace = Irs ie ran rows
ra Netenarangecter Po otra na | —" oie
fa Mececehos ie ah ty Season mae
~ tween oat Tatu sone eran
Son ae ‘ono sn
~ terete ames ost peer? cn
1 ee cee SSeewecen
0) Haaren 8 oo
eterna aaa Fron are SNe
om) Moaenetpen a pence WN) 6121 character Classes
som" Seiscmerssk YP) Vim er cectrsen irate ie teen i [RSPR
SEEN TT Soanavantcay If Soccer mo ie comers | tama
Poninscumr paa rym remains
(HERI rer cs sing ato one
+ ecm ee enn
(HEIR ren eee te we fetches
ee ns hese
EEE notte ef nn et apron
Sere Moe Earn
Pa 4 hh ig hol swith, en fl wit ys ance
eee
coisas,
on Res pteTE) eee monn
6122 Groups
‘toe ranma erie itn: Yanez
“Tecmo gop mach enced an Reng) io or a,
Peet)e psp) mn enema
Sesehciceemrat rent pt et
denen toil pf pte rp a yg
+ Nem up ve vt OP.) iene te ne the i
SSCL pfs esa pugley an
+ Nowa rp ning ent
sain soy ce
IBID 2 ee nt pi
rom se noes
grout ero mit een
Ce| FA) rememareenr
on ep rein pacing se aie
te (emi ih i
(HEIR pn ct te teEeeay neers = — carmen «
Se eee
Semi iter nn rade aes oe
eeetmenoaan
pee antici
ae
Eames psaGLOSSARY
py Ste Asi i
femee
2 Tait ii utes matt 9
Sees Aare Sa tt
‘Soe eteeiae
ity gt
fetta eon
Se
2 hy soni te” wd
esate ein
1 le enn a a i ot
22, isos wa i toad
‘ream a
cite ndnamgmigctss jaeey wa
™ anayse aeons
“Sothys ol ro
eae
a ppemmrees
Reames
1 nite cd enby 6 bide
‘Ecifuinnne mcm "3 Whale) ao 09
oe mene 32 Wah mr gen nt ae
{2 poe Sox & oe
‘oo ‘oe Hw my gps rept eine
ed
6 REET emt) mh a
epee et
Progamming Exariee
1 hl tt cima ng 3. Were pp sg
aieeacleeraetite” ” inicuer aaa geaoreg
Pataca iranreaemee
‘Misys ons on
Scoiemeees
Peete mecca
esata coke lose
Samosa
stern gh ss
See ens ie
Pears
ao soe abe
eel =
tence deltg et POR{iibarcemeaacneigah
ese teins GF)(DRY roeerenmig
Answers
1 en 2 i
‘Site te or Falee
teal Chace Questions
11 INTRODUCTION
Ale lei isd xml ste de aT own ce
sey td hen’ sn a ea) elas
eer ry ther emer af tame At
vac faerie ns etn ane gh
si oral th i a Iya ee an ay en yout es ea
sien sary vib mb Te seis ep
Tenet pee anne et
+ Fe ice sinker atin una ht fh ins
Shel en a 90 wn mn ee
600th arp bene ec a a sae
72 Fue para
a ee i en ec ty