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

Python Unit I

python unit 1 hand written notes

Uploaded by

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

Python Unit I

python unit 1 hand written notes

Uploaded by

rtushar27008
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 24
Unite ae : OD Poke Peqramming "Sahl Puihon Ts At ate a tM trope b enevel prapse dynamic Poh lve anal ele preg Tamm Corierttea ine langue at suppels ohjedt and eos ae ‘te obvetep opplrcations, TH is Smple tng provides Usb f fae teal - anol yarsads le +) elprettive ola Suc fess oy fe Jeaon uf ovum fim Is ean ne which mapeeds ; At sp sting lang di cat olovelep nord Python s and dyraesic Lying with iy innepell hatine afro jf a a dongoep fe aeplng and 344 Applicahen olwelof . - . manning pottean jnc 4 fushen per in 7 ee 4 ey “te oH inched ST jonalnt py shy kes — Pylaen Fs os} jnstincoel fo wo 17 2 peoeolen aug auch d gamenind « qed i wd BS fen Y d bogf peceasac | be oan" enteopr i 3D cad etc. MY Lueh p nal ops 9 useof wish Web Ce Futon Fealerces = - Priendly and high i] y Easy fe learn te leaun it is olavelobae Fythen is cong papenning lenquoge 2) Expaesive danguage Python lang 2 Inove ex fousive means that it is inore undr- stondeble and suadoble. ade geulel 3) Intevpaced dan nguase Python is an Tafee}nelel langoare mmgans jine -by- Dine ) Cross- ple ovm dengue ree (an Hun equ ally different pate foens auch @& Macntesr efe. So we Can ou Windows, dinuy, Vrix and tan than python k ‘a pastebl 5) Free and ofen So Sourtl - : mer etn aala. f a : a tt ane peg : ie auppert opjeel Crenbd lorgnege arol conapis asses and objech bine inf -eeassence. extend ble 4 ae implies Hot othes angoages auch tab cof ob can BO 1% Compile. the ve and this JP Cam on in out pyiter tw ry ae prewels Such cs L slandac¢ dibroad tas slondasd and brad + son dul and feochons pe cb 4 af plicechen choudlefrel &) Conse Based Applications ce | lie con tue Pye fo cleuelep censele bared appl cations CD fudio gx Video based Applications futher Js .qtaueme » 46 pe fom muldiple 4 Ks and can be usea ty cluelep w altnbele See ae sual applicahens aw fine plese op) K oe @) gp can Applications 4 7 Te creak CAD application, nclange i Feel fe fabas of cr bnencla C application which & yh tan be teed fo cweate which Can be Coed within Bs esr om ageigeton, Some a applications aus opie Esp Tyke Pech et ‘ ay Application te eG sizatens con BE chuloped for Using Hen eee oth ae! Wpyiten Gogh, peg hl mad . Applica levalp O° / kk, (im se elk : & , Pr Python Applications eS ~ tty Web Applications futher ic Used fo Ltn web application’, Ty puerta cols ach a bom Hie to fondle Pnkonet pr and XML, Joon Email fereost gq} aso pon ovds foewnewafe Auch @ Ryange, Tot Flat de® olisign Web based of pli caf ons. @) Deletop qui Appli atm & fait forwida Te Ger libs fo divelif 08 jn ferface In yeh based oflicarhens. Sone oh wf foul jats wallidg Mg. wseblem Gh t plete fons. The [avy s } appli colims. peu gq) welts foo buvtol coll wed in geienbifc and numeic. Compchng ee ‘ibe a sah pocpeane a seily Pande J ry 7 Sei jy a ginp pace . engineer yd pous f Greg dgciene and matte aches. 6) Business Appli fy}hon js USed) fo e7 (gindneole a cahons coding hfxeERP and huidd Bushinass Mf oat prom , seo. Tegien is @ Antractng wit, Python Pegrame The most the weed hey Le tise topand te ffm | Keod ~Bial-trag-Leaf, ( REPL enetermad. + ~mionc atest & i > l d+ Puons simet intabuder and typing teenrnandy fe rh iveetty Thr inde £ Is an mand yes ert eretuk Hs Conacard — fant fe Cuipat ed ang j fe fs Genitle — Leopt beik and sopsal #8 freee: Starting Inks frubi On Windows os Forel Byfen @x Windexy Gmmand freenbe: Ci\Wer> Tregrmoning Cyele ev fen @® [iyo Kas shevtery preqremrng pregeerning tye tH thay frog Eampile and fae sees. j preddiel af oun fime and Uses cove fhan qreclisiona fi Jhon paws wernt Tre jo) pal Le they tntein jhe olyeot hey tan lain, Because f di, pions proms dun fmmneoliale’ offre Chander an made. My tase whine oly ryaaric mockeel guloacling can be ted e U iJ is even peisidle “T° change, cincf gutoad park Go, sunning posgram toi thouf atepbing Pat ath. fipthon 2s Finport on the pe panning ele is aa fate: | (Zool the offal) [rn | Goin aplicle) _ J _ Be tied [seh the alin [oe —<—<$<$—$— " CC \ an var pop | fener | [! a 4 7 ———— t Ve Po param oy Pan 4 im t Cycle pith roe ‘loa olng boutid phere It sofid fun around offer since fig on Is inte spo atin Cha GEL Mn because Py deol parece Is embedded tn nS af I fy ih. hand meres, Hj eam de dove fy pg Jw sn lime. (hy fyhen'« frrgraroning cycle sinieg valid Developme es ica dea} de ee CIDE) Co esti 9e that Cencis 7 ping and feslng Stoaat ce Consist af or val Hoole for oss, Te was Pritedand fo di (Bells cbvclober or aulamedig ja Popolen fgdher IDE. one minich éading een dyn J fy chaem ~ 4 TH assist the devel Jo be mone prockuctive aod ponardy daa aeyjetiong. 1 daves ime by Iafting tare of veedone Fasle, Rente increases prvelchoty. 7 CRoluves +f fy chav et Fas AmaS} code navigation qn eds qfactoung. fe de activities coh pcan ane prefting desting ing Z ‘cludelefainert and Abpleyiment: z sobpok then web cbelef rar frame wee Anglian 16 €n r 7 Semple cso HIME and Live editing functions, o 7 editor a finetion oe qui, 5 =. 4 widely used fr aly Aciens wirks, TH mushy eet Pg ve an Acentific enorvenmunt fo“ bydhen «Spy lon on yt (Gam pg) which @ duelefer am 'the an gxlensiM Feotues of syd | ) It fas geod Ago dte haadigting and aude ted “nn filing . 1) § Syd Python x ploses and ¢dih variably limelly om Gui. m) St perfovins wolf malfi- Largase editor. fi dev = @ J. His an external plu Be jae nal plug-in for eclipse and is veg prpalen 2 pylon Features CT fy Bey. Py Pew a {rong parameters like jaclomn d p rf ekbuggin Pe Hinting, cong onal and Cod Carereye fue wre § 3) Ayo sup peat fepens pyruses Pin a joteredye cen cale, Jumele cbhigger Unib te inte rehn, <4 jnney Lue} obteleper, we used pon be Jince it inceesseg the e TLE Tris @ hae rolé [yon 18 Corot eas DDE, bi He M4 ae he jn colechon with Tein ter GUE w Dhis cloveloped ty” fer th ZOLE fas gl me alti comelors tot el fonction Ljee Amacd Inclunle— ul) tet ae oo uff P ce and unde ppiax Python rota m Ubunty T ‘epit Fat pythnsd ingialod bytan Hobisd i) reply We When we pyihr my Cheelé bys - Uesicn ~ yam Ip will Shoe the curcemt VI #4 Type pyie c € femont - pfemow a Aye Fyen teriakls th) Variable a name whieh te Used A beriabte Ko alio [ene ay jovhifics ane tted Ualue. Fo python wwe alo nod ned te Speedy ianeble Hype becewre ey Hr ie dye Info doy geage any siand . fete ’ eheugh fe gu wanadli ype. Lariable name (an be ct pep 4 oltgits but have ts bequn wilh a ik ay mewn Incatiene fue doth bethen ane feller a crn tind €Love. Tdentide Mamin ; : J hy idenli {ter it op identifiers | d f phe only Hariably an fhe exaple | used #& ieohif the Aiferrols usec’ 9 pragram fo ame an iedenbifice au given below = The fost choracker He eariable pw be an alpaael xe excipt phe fost character May be pave 3 ca-z). or unc score >): gen) ) or sspeeseet ~ A tie characte an alphebet df Aowsts Care C tndiesere % lial (0°) ay ddenfier PPC gous} colin ng cod Te O° om pap verds au allowed tase — Bere fex example a whl sspaur, ny nerne ommel wigan? i an elijferest Byam le". . a _h “meg om ald j ole nh re ; : nual d jolinti'cs jo nye DS # J Deelaning vorbtdla thle ine ant i z We ol wh au ina ng tales CP Lut aang 4 hal aye Manele TN fyyaann cnpplieh y Cod ye idle paw tanvetdle [hot rhonwt hie is ' olte loved ak inadicale. Mathie asia {iho attouy Ces Ct ytadveh UN aly Rey a talae oh pith ple uanedly 1 aingle torte men oy nee aple tage + by » yy ye fo pnd QO) € pou! " pow! 2 Ex a nerginls ann CO) sant ( b> pate) thon Pola pet a Cnniahle (2 fol waltied ¢f oliffevent olala Ly pes gine Pydha pyccdout ay Ne is olt pon Cll dypeel tue reed nof do obyfne Aye f eeeneshh ( 0 cont th type. olaal fret impli fly hinds tac t vale qhe into pods bie chen ner seven HOH verde pevcseel pr lo , b= 0 Iv (yh ouput cr 0S print ( tybe L299 % type Vingiy fret (tobe 0) ctype Sh> al aC Hyper Lory? L tote Hr * > Slandanol pate “Iypes (@) A variate can bell di i ; different ‘ye qf vals, (ydhen proviels Ladies tan elasd anclasd alate dypes | m eaen of hem Iypes het obifine sforaye mudho ~y Nam bev Klanber sb™4 purmerie. Uaeeeg. Kyler couabs umber is aang! de a Uaniate hjecte. wher pan bay juin bey objeck ) a avg bs Was ut fav example G fiythen suppl a types 4 jumeric -» but ( (rae Jog 77 ek) oy fof CFT gy, 188 ck) 3 Camplox ( at aay e&) > Shing fhe anings be bfnd the chanackrs pepoarnbd in quototen snaopls «7 Python, we an USE, olawcle v ( ori ple quda alejme a ThE: Tn fhe €20e steng Leobiing, Be Pe" pp wed te Concelensd to shing a Wh opreat riyetto +" Byihen " sudan " Mello Chinen! the ame ig pawn otepetion ofa os v pylon 2 . ggill seJuony ws pynenthiten | fx se 1 Ghagieboo" pint (she [6/29 ) nthe actfu wit! be a, of 410 Khe The len foro Char aor Ge pra sfewelt a OW anvy in 0, Honeure Sit con tentein cole Jin ty List we ended Yih OY Je wa ane Fen 1 4 dap Mju fe Amal 4 ana 4 peo ba YW d wy doh “f ty eos bye ta ug S46 hen dn he GOS hid, W pnrabsrohn U9 suf, open a pols ths sine q My 200 yoy Ob wy WH pb bah LF WY Wa 1 79 i os of ERA y Uyfed. he spol “4 wih, & HE and leh A (yn HE nt of Aifl V4 vd ben pest A type be oad voly Sale shocks porns wd ad Ae and valle q ds shrg 4 o dpe [ene ple ee Chee out fal ef fatevong dofementt point COPE) jon CEG pom CLOT) pour CD fot (ype CO) Jone (0 (Poe "he" Die Hionaray h ig crm ondeard 24 4 apa yal pal af tm Cros el Past debe whw ar inp Carn Jot ay primis he toms piper Ved: nd encloseol 7 Diediereras ( His bje an acidicehye poy ower « sprafe vad. fey dype whan valtw oa onl Lado i abedienaay OW spvadd tilly ple Come a ¢ curly Inaw ff. ci abyt ae! " d= te ying | a Mes! ® John! 4 wikery inh ("14 name. VE TE ALO | cath name ic "a Afany A); & pays \)p 7 pevaliy 0) Fyn Kepue de ‘faue yale None. and ase} def clove for ia I cc foty AT “ gla! for f as x ase ng oF ean ge nenlwa e on lvoh in toh is lambda Python dijerals Jjjevole can P* pod O° a ing tons png BE be formed be eral ae \ pats) nm fjthon * fig oppoldd tag is 0» & ST _ Jptod in nal po Gna. @ way do ore f' lo create a mettle shay Thene are Teun ) ate 0 : ! Adtaling fertfe. sta at the end af cach dno. Steed] CHehio| tuyere Phetio lise ! The eutf y ) Ih eulpal wie Be Rete i) (ay Using Pipe peotlen mae ® soe Sh [ udewne fo sinclia” sp ota CD u Output wwe be we nda, Dyevatt Namede diferals for fect! and com fbx an nu moh caithert fractal park @ yp is bom bey of 1 num bev wit fact mal por The pomben in fe Qa ble y [wo valun due bad pate vols (an Fone my ee Tue arpa 09 7 pam Cy xa) Alo uxcl aw end 4 Asa in py kon p y then operators gS sade HA om ope n | (oy un 4 bal ux ti pe at; bof wands. > Asthmatic. opevatos = Relational opratens 4 Arsgnvnat poets 3 cag vafos >» bluse aporefors > Mem beshup opevatox 2 Febn hb gpeoeton Apidhmachic aferates opecctor Desin phon ¥ Subpactho rs pet dihen @o / duis (set) piven ( for) medals fo ER 77 ab-4* 77 add= arb >27 paint (acta) ee sub = ane pny (B05) eur pddhon Muth pacatn we ak aa aa ay aeliee reff olivi = a/b prin Chor) modi = 29*> pant nd) Distnphen Qan07t Han Jessy Han quad, than peacad MO ond w Legal om, not derpead Mot oa, 52 Thug Poke be go> pains (Zand ) 7 barat (neta) Bipunse CPesetes ator rae ~ Berm And < ym > Bap eek Sot ab BE et ea ah te Hoh eqn? gry mane hey worry Ly, ae e ala pain qz=h) oe Seprtex and 4 ney nee doo print (921 Spe : mT on an wate 277 Qz bo 327 @LEUY | >>> QAb (4nj 7a b=13 7794 b (\ yo b ae : 4272 Cig, nacagy ag Ass 9272 (ar) (grmeocd operafos Oprates pacnphan = Syne ae Assyns eb eyetlahy, sugnt he ney th += jag anos acd aiget sand with J Yu yo apeated and fen ung 1 aaey, 0 2b | bof open nd My aza-b q-=b aa ae aves Car Bie - R= alte oe oo. l= pind AMD ae ey: fs = Medux AND a ye pin ¢ flersy allah ow at t eae Ex pont rH averted a@-@/1b Ex 3, er ae 7 very ae ae pai piu arent ae 722, pri 7 pare 09 Spatial operedes © tend ly operader @% Mambessup oprader P40 ow 219A $ pst cnr CA is nor bry Jobe a Jere pot qa memo aa biz 7 pa fan by) ath ome Cech fe Choy a ade wer 42 £12,929 gos ve LUI pra eb) Gabse- XS | Geetestr Geek! = : >» forte (Gl ig ay oer aes : ° priate (i 4) re pat (dts) iy eb T Pylon Comments Tt iy Gag b exhlam poe ay | . le. Also te fi ob | Ww Single [ine Gmmeyf_ ° tots Krol cel, SHert onsh H fymbul Ve FF hat ug fs my jes 7 @) Mutt L ne Gornmenf This Geen jrde tiple qeustes BY hy iy ms m Prva" rofoc Rrucedonce This is weed inan * pusion wi dh note dhan ane operates earth fere f olkna is aden wh pe Im Ye joh operated ch rsfeom fa. ® Braye @ palbfolit lan] oro 6 Adel onf sebhenken @/ Arsgneart- oferator ianunhl ub Dn opwalos ith Are fucadere ad : a AR Lagi ~ do ~ Pg: eu operate pesen ph Ayouchuly, 0 parandloas Lt kh we x prot e-n-b syuontn( omy Lee yl de pel Lo >> Aoldhen[soblrte yy Bisene Lue Aik bare ee ond 4 | > le bce ut Shue ie | | ne eae R aie quel th gual onl ee equal to h | ig not oF equ, Lie. not 1) equally canal snore 4a ofeoatos Lt ( and (He) 1 [ob | os or (arene | = a a Cet pore’) LF pe : logieak Rte Le and logical and Lf L to 2. or Legita ofl iio a «fn exprussion | combiner ef a yrcbel to a deme ve tows and chrcanst thy a tates sphee voles Ex < yt? pon ex passe : qu am mand oligo Lupo co al ry {yh » Ve constant tr ee a- shrew &* sa ssieo fnegptes expos y-Fleedin & Lous} eng —— 5+ Relational ex prwasion & @ . dagical Sebrussione F- Rilwise Exlbsucsion 6 Gmbi nec mal &« puss on \- Gmstant Exbrussion These Expresi on fave constant valu only Ex swe Joop DIMES 4H )1e 277 bnint (00) Cutput > 163 a s . Ex |oussian ithnach C. ce lalla operas P tron och 2) { ™ Shithmaie expr a “pam eines paran thas operate”, humene Ex 127 %=12 yr qr lo — acl = x4 Outfed dup = 4} 39 amen : 277 cu = aly Ye 377 it (ods) lia cov fant (2%) ofa (mt) ~>pin GD) es! 3 Tntepral Expression - ' 1S ;- These bel em only Inte se Bind of echwsiont poreda a aie a Ke , ; Conyers} ong Ex 227 A=I2 \ vo7 be S38 sor ce atinty ae part cc) ye Floating “Ex sussicng: These aoe the hind f expression lohich pre alec eodfin point numbers a & geese efter att Coon bute me and type con vet on Ex Q=)3 bab c= afb patioct Cc) 5 Relatimal 2x gussions + In pee type F aopmessian & wontked on te both aids axthinehe exepusiiens an rhea : seelationel epecadn Fang amishnettic expres! as me compared a pe selection 7. evaluates tren Ex. a ak pe cr Be od = 3e (ath) >= c~d) Pie = 33>=5 Pour Ferre] TS epher rue er fete Since susult TW 43 alse calvel hoslern

You might also like