Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
23 views

Python Unit1

Uploaded by

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

Python Unit1

Uploaded by

SazzzNiziyan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 29
ours Python > : 19905, ° Developed by (rutdo vow Rossum ea Pee a Ligh. dosh rtopuced, pails PAE Langueg® : qual Gre pletfore pragma =H hoavratin- ate he bide ee yeatel ee ee bokeews ae ee As ex prerrtortp « aia. iy tans cponactor oh Pics rane A ea, 0 +4 QD Spectol ali ees a Cua 4) ihtte-sppaces ¢ blauk apace toler ft ae Toke : fae BG pki! OA wm Pr oe lulls Tole Kee ie sos Edewtt-ttens CNawe) | _g preorod |__» operotoa> L—» punck uslBlye Note t- Ahore oucral writs ( tileews) core earelontavdable by the Cowf tt] bdorpreler # Keyirrerels SS * Where wre pre dafrned words Cosowerd woh) ut Apeccol eas be the Lowy] Enders tor. k> Cc wi fof, empor Ushile enemp GY, ay tery le cuca ataat global eke + Udenti fires Crlawre) Dheoe ane tie name gine ds Littoral? pore es ie og Aucy ot — @ Nowe gin ts a vesutalble, / Nae given be a Comskand- ete « Name aves fe, ee Gender exarple ‘ Nag | o fi clef equi) . race’) Eee K(iiesea) pgvily yarutabls pawier — ONG Caw nek bee beagporet oe cer color Jpttow, ru uvdosere ( co © We cannel- Abert Efe ile os he pel pace foe ea aa dem Jottrs 0h ards unber? ank Unt & prem ber Aboeel Eee Awe — =] yaled Cdenlifiow = a AB [ob | ie => 4towe wovabidl | ace S 2 al iu adlucttf Lenn Qobe ae Jo tealk > @ Whue ane cow tot wv fied webs aaa on Ti Tntegou piatiog pee Complen roe Beroleaw None- PYprew Leat- LETS Sry THe = Do aaer Sek Note: Athen bitowh helovs bo Prof pide Hype 2% fifther Ht Ranch okad 1 3 orthese que We egnbold pnd ae papers eter aprlare 4 Re ee gramplo- a CV LES, fe. ap op wales cae + Symbols thet ave urd Lb poferry Aome lompuketiow: pyrite elte felotiored Lest 4 fiythe operabors J pagicok | Hbesr- Alene) | Cemsoys seerutt doh ee | whole rumbely swrek | 4a a x * eC | t#ea32 g Cot Khe 62S tp Aelatiotal opoatan > + operates scale EO) Cag ies, jae eo yee ie, re Fodra a.ceardind ie the conrdation - TE poate Fae Reta True Gr A ate penton SOHGI~) gh geet ae \Sy aac Kad a 4232 Fale 5 pzs amet 572 es |. silicate YU deo we Y<24o Tue Yer a re yazrcs Feb ak equak 8, Reins Trae Ff | ules toe both He operands ane tA equal | ojsc o fale @ ae Aogical opvalen > @ Hhwe oprstans Bre Ld Us eons, dads nae covrdiCrew 057 a Covalent Me Cyl tiass y the ae om Operator | operations eee and Reta True tf bot He (567) ava (572) Operands ane Trt be a Syntax: opl one op® (ser)amd (578) fobe ov Rorrrs rae f ee coe exo) C2 torte ee sc pass) onci7y jar. OPI oy OP irate aed 1 (ner oct? — — -4 "ud fae a ne pee he Rakers Tue tf the onpirt mecane epremter 2 iw Twe Syutak! met op! Peres) Lb Folac ate Pintycesente ‘O fetal C2>\c- A Rigey ta) OS yesod e. cabot fer Cote wed Syolats- Exavrfle - aigtk | lo 4b petmde opoele > ® ate operator Dak peor oprollor on ee ae The br bcopse operatans eaedes only on pobegend Proce’ Herne She integer Foi fora Pe os ie oo en che Bifove Spewthen poyowreet ew bite by bu, the Yerutt oblotned is Tew converted loocle de trtyguu operates) opexalt’on Example — 24 ke xQttwise Aid ee ac & SYMIan! KEY Bey onens) aRekuvie | if boby ee the brs are | @ eee = oe No | EBitee OR Gale 4 suntan 214 53010) % Rebawns | if rer yao YOO of the bik & A. tee gao\s* L a prerteresa Nn a Biturtse KOR Se Sel + Syntan & aa) 5a4ez\ §Soli0) Ys 0100 @ecoes Pear el = — + Betume NOT Se eee oe ySynlee? ok ee +e trv oh , Vee bf -yutim bor (an 4 ie —Yo he iho g taper W eee ao prs oo VS efthurine Led SHI = of Sunta t! he aaa oi ye oe 28 oe no where ne gy bik to ae Shy opowlion be ab, ote oF Bp smock a por Po Onis vf , stows bons, ga pie peel care ies nae que ch ec ; twhien wa . uae ee sae ee At pe Right st a vot yi sy we >? 4 peat er agiely ed o “sty Se Tei aces li Slee ge posters si ie He sia Lene He i prerent oh oy bacon tt Dato typere + ured by ddetify The type of dole k A Se oo ae din gf dole My per python 2 > Indeqou nate stemates Nuncboys 5 eg ComnPee mun > Sine 3 babe > bape Be icire ot a ak > Noe sy Pete Boh ee cinbepos > beprusend® be coh ane ok Fp ese ANE NEO ay) |e, Pie trbg ne uaed Miao or fale in iba a amie hue Ne | or fale je © | tt diealeg. perl founben 5 sohese are The muynlot af te for Q+b bithene Dadi gohpotas = fretted pal ea gab, a pote decinasd poorl—C oo BH cae ea CG +e, e3, eu HO cmc # Com phx Nuabtnb os hese nu ore 4 the for ain the teak Oo le by. whore of ee by 2, ec ys pau, i bok j Her ane OF as Abo» hore J ba inapnary no, bowers wal eee bf, er ——.. . ees @ 20+ 3-0) ee ° Sfuene choad wrytlew cotter 3 fe qustes CC ') + diutle quater Co") > tepple quater 017 ee ’ Hetlo rote 0 ST eilo phe Haley qmultthe doy woud" 2b co fall cru yer Fl chara ese alist . silks deHot a. a chesents of Jeane dale: gin * anthlhe AGN ots Ape closed | ie aaa o Here cack ads 2a, ae Corame at fa eee | 8 A | Lee 2) pot ube ie 4 ; =! a Tuplee— © Covleelion 4 beers df dawe ti pe 4 on Af eeu Ayp+4 picled Ee pyesene ) Curved hake po o Hue aw phemrert DB bape tied by Qa Comm: Oo Ca % Gos) Cua 2y) (ea Con aD) o pure ae aue : Hee 1 gated » ge! Tuba’, 9: todenesf he fe pa Aeperbor ae ee to wepaoel¥ ee a Set > 4 we lee callecice eit deme) en clored An lrrethe— © due ener element o ppd 4 . Sc epolts o alemenkk Spices Ae oe at cleme fe Hey Cavnak ba Aa 9 tan be added wo Dm we 11% 3} fo en (he 29 | fram! BES a Nene > sia. dole sype! 2h pythar mua AD depire fonyalat on oi —_— Py rave Tpy- + A vasdoble for (orkain, Hype. cam bs a vyabe J Python altos Ae ine 4 ae loo Herto Js a value, ‘| & ho mode & prt defpook i a rae fe dole oe Q= 100 print CO») a= ‘Helo! print Ca) ge (me ee As co : dhe be 2) pas lo7684 a ee loo “a cee ak Lime OE] plus a petets te the Preonsl Soca Sow le 1047684 a whore tou! 0g Pest a tt & prseey ea @ A yetcol — Combindtrod opoo tars, phorbs awk Vastabls, aud tam lee —f coe Sgpe puree a prtam te a © 5 solotie exprorros Ho Aythmalic exprerod — A vebiel Cowbinaliod J uw bes ae ayutphmette op rate ae + 4/32, ZtBK#FL, Be Si a other ox [Fele| Fig x4) ules, _ +t @ Crh om Exprerror4 a : To wralucli “an expr pee ae Sue 8 foliorsedt : debormer nie spucaler prrccodenee belps - piston for Be be pepewed Cf aces ee sporalans tang igh potesitg ane Derrek opealws thol- Chang deme pronty ) fiat 4 _oss0cht ly ee the opunclars excep exponent opvoler ete sp eo OE en tlie be exten aposstan 0 rable fy arsouiotine i erie, 2 Quatre ev Abu coder 5 y an exp : enalar pue (ea te aaey lat oo gee ¢ ae od dred. “awlalien olodatyps tne ee Osea Bie Sie vale OM jos , te te ‘ re CAN PIE ie ees gare pobre He enprvrrrr and He "ae ty / for the (®) He Operator precoder Table — babhuont Priowly y () . > parindherce K >» Exponent Oporaton Heantvp i] tu -% ve > Unany pur, unenymaiiva btutse NoT “KLM th - 5 Mubdiplicsliod, ‘prviscor , dla Divi»co 5 modulus boo 5 fddili'ors, Subsbraction | Zo Berea opertos & E > itesoe AND A = > Bkfestpe KOR | I iia cl ee las yo Commpards sw, iden ttl ee z colt membos tip forbs, tn nok & y aS doytcol NoT ee ee i? gitod OR “4 You go aad iu the precedence tate prtoalg eoreares, aol ofoatem present al tame Lowk Buck 3lh-), Pane deme ptonly : Exavnple, te dole ) ay 5 KS . Prise - lay dw QD) Bx DI 344, => bure adhe opuolers -¥ od pruiontliy So arroe attr tly jul Connt Aosatiion aol Wel be waluste df dhe fotieutrg PH ( 1%) Doe oe das bejbort- Ir vv 20 -usi he evebrated Grae JM dame Dame unt) tome wal Maerwpone Une spending me, Lege Is sgl ce BK] uth he rvatest grok youlhen Mar “ifs, Ao fhe og Pwr wit be» 7 Al ilary S| Try > i Aw: 3) 3% (is) +4 Me 3%K2 +4 re cred > lo. Aw. ead )) dios bighed— prrowly Ao Jd sit be eveluratedt Ars sf ———) at ov wluatien b 4) (04 #2) K20) and (5 The bore exprercoe ues ax The vuolalion (C4 # #2 < 20) ib rue nd Dhe relation (soe aly qe Ge) ee ae Abe outisme > True only A Bnpulk (operands) gre Tc: Dye 5) 8+ 7/2*4 3S Bot 36-5 *K4.0 > Beals yD 34 “Hh Assigning valu Jere varia D Mhute ane different” as bh arin values be e& vortables “k She aiea Same yalue Syndr — Vubblel = Vvasurbl 2 =vartabl-$-— Rolawer{le - arh:ce?3 hes abacement th = ts poulttpfe arta bles - atden 2 Valac aw Van ats 3S & au Khe dine yaurble te @,b Pee HK faut a mullaple Values fe wulliple. Ver tatdes PS Atyle Lt Syoter Vanntle| prasiatele2, 5 example— Ob Ce the ob lo, 20 Ce. Noleta olny emus quel i) um bur Fo raublple- variable Oe Lnbctiua ert lo arty nedl faa, _vartablan = valued, Vala d, .. -Vebun pO cand amps yraliaes oer wine Ro bb amd 30 foe yhle name and veluws ymurt be Ly one vs avniyreig one Valles un Dbyle, Le y ta hse At Top [ wt @ *« Input! Pythor proutdes dapul: qa Aco, apa pret ue dake apo for ‘the wir C Kept hoanel énp) Symtan:- | & Emp Cine muurye ) bn vooutable ram » neadosh Ke Vosu’alale—nawne > howe arable Aol the value > tnpak ey a prompt a> the ea he atngdaph te Me ime Sap te cxawaple — oI You % be ern wuted up Cobegew 0% wea ben oy Complex quyn her Ci bOr quam = Ont FaputC 9 Evher o Ce) 2 hue he Bopid- 2 cenvdeh Lrty Ge a Pythow pocowihes pane fur din part? Vise ioe he: odert~ be pevclorA quar olemtce ¢ yaoi) 2 Syptar @ shnphlispied Ayoko) | prart( Fobjech, sepe' ends ‘\n!) pane ~ ‘ ) Fobjes 7 Ye aw be & ie eed Oh orale object pop orate a comin ® | ond vr ewdeine, ured bs dented onl J Ona ving EN yalco oat & au Sn aoe ‘seatde prerl-© D. modified ra : eid Woe al oe oll fleck is | © Value 4 Sep Com be engl ofan he @ ato 2 Exawpla! 6 pw C'He) ott rt ae Oe Olt: obgek ue nf 4 e re pati | ; ep clive ly @ pra L1H 124, phen) ecb pee HE, 3 ame cheek OP: gay 123 One © oe Ptygad 2b eet Phe, vas” F Mt (ee eb im Senos dipper! rife obtt i Sash) © ie sor Exampre &, pees Or - paabisfted Bea nee @ prot l LL pork’ He ee oO H° Hy ae Yi pul) i a 7 @ @ prec ier enteY) 3 pone (Sow OMe qu) olp Hid How oe yer hake? — OK ce xowrpt © dhe nek Dh How ome YO: JA pie By Aaa be whore HC Dy Joucvr4 cae we whine o& 24 de tno yoo 2 pated ak nok Line Ae Pcie S\q) 2s oh olen 2 phe ed atemernt- prot end te re) “TY pe Spe. Stake ment: in python Ahwe one the Prftructtios gh to a com ptr ds iP ey veo Aperfie dash. Aucly 0d meubrpy aab~, ney , om acon. aw deed Or Srepeo a Pythuw rtelemeat- dow he out Bae q pits @ Emel At ede ment @ senple utabemerk ( Magh a & Comper abidem ert. ap emply stakemenl- dhe viel ~ phaleameut- am pyro rote ment (Nutt rlatemudD i the emply psbich lees mething » 2h fares She pourcwrty fo — so when potter em corters & f pfalewrent” Le eloes nobhiry and fre mene 4 the net atabenrents ews control ee Strple At ade ment . @ 7 Ary role 2x ecod a Mle Almpke volale mel — rbofe no ent ys | example - @® az hope @ prirbl'Hesro!) ( levstten @ alee) tt Compara Stake men — ede seoprenenht a gop Jf otode wits erecutedt oo Uunrthk «SE hay a header Une which begi 07h a Kegporek aval eye OO eee on rahe « @ bo cori or. Ae . ack. : glee ee aide the fender Line, wv the he ane oft the ee of Erdem fatfor. Py hI es Dpres fo) eee et LAY roto Broler 2b, cee ee oT. eee fowsty om Figg. ako au ew Ca Compound state mel esd ? bo Conbedrng ot or the Aletewrenls an Seep EO tavdng on Ident = J 4 rpaces ste! — df » compoune eh wae another Conn pourmel bale ret poe pre FZompowrd tetera handull: 5 4 Apia ody Contarnty me o- Ware | ences Uppucs _ptemeb haviy om indodrs} 4 @D Netes- The Pndentoliow 7) python ane Wed As male phe Coole WA Sreoalatye gra As opeafyf thal- a pasticalor at 4 atake ments helery ik > apeafic AWekr. Nol- gorrs by fhe frelentetion ole unl wale 9 ey, Fee Probutatiom Esroy'

You might also like