0% found this document useful (0 votes)
29 views14 pages

Python

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

Python

Python assignment
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 14
keH Asstonments.5 Cyrermas moyy ° a % rw Se et het, rp gee Mocutes Als Sectlans A poe [« that & tna UAL OG medie () metho, —— g in python P 1 —> We Hue 2 metho Yn python ) the pour. of ths cquaHe! mocute 5 pouicl. pLeov/cey, a wafnryrte eel & peu Cha yo ceuctle ghtaplig 5 utstng euaette Lice objects » Busy mole ce ay, ono hy Autd fe Hectth pe109 tla ming L ae beguonty Clue fo FH ohrrypttiy Vista, fLottlle. = Exampee? Wmpous tutte ts tutte. Tue t- forward (129) Wp t+ leper (9) + forward (100) 3 ture. dove) 2 alow ty tie padrrraig puspose of tw Butte Macuue fn python? — Ln palmar puspon Of Due Mocteuste 1 #0 provide Lone % fnttive way fe oeectle q2eaputes aud olttawing, jis asel sulted for beginners as A offer fun % Jnttiahve Slatforment 7d Visucctize Fe CHECHEN of cocle, ——— koy seats, % PUsPOSES Of Zeectre ryrmtecte mone Sq > tyrapurca puogeamming te, =P yeacufrg tool Pp Algesittamn visuces#a ten p -cttative PrYputtsfou. Gn wlwette moaclite, Cohodt chloe The foseuasal) fourm aos + wu pouuaced ( ) quia Ag Nich $e Wove ane fiietle = yfotuuasel an sie BELLE St at Cen end LY pacing by a apecipred Aste fxi— Impose tutte "4 t= tutdte. Insite C) t-fodeasel (IDO) # rouus Te TuAtte yoousmnand ty Bay tHe. core) A ; Hy Haro can you bind a functia vo a Buuttin wldge- 10 tAintes ¢ v4 2 Following Metrat} sue Ugedlto Urilafunc. 10 a Butt Wfeloet 2~F bt USthg The bind ¢)rnetnod. t= Luk metnoct alia Yau TO- ahociae an eit witha cagthack, funcin, who ty &pechtted eye OtcmuLy, HL Cal back force will ke frvaked.. 3 Phe qenvsas dumparr [7 widget. bind. ¢ evesrt, hond 4. Ulng parermetes. Command. potormebel 2 Duty planet allows you po Specs chm thedt- Shoubd, becaliect Ae huttton, era, 5. talhich fkhintey prety TTY, i on plachy anaeele fo ‘Y gula - eke" ae | VuwotwHe } o mar }) > ee TRH qeonmotitty ee, "i * bay al | Big 4 genie Hee SAetLo.§ gy (AE waited On placing cwidt i] | a the {apucsl' gerne! OPONAACL + Diitin “then ecient wectinettay VAT TTS! Uslleete ayn ae oLug antes In tout CG cots 4 Minilas p, Q qed a fublt of wot. fu corn SP! cr, o av on LACULCLA euhise od - = ene Law ancl Colum enol. bp placed , A tele o Ee Cael ewldgeb oy actolitenal opti uel, oy) OGIO peccteting and spanning .. : : gt 0 1 RT RN = SECTION 9B t Fogptain Braet ener) op a thin ° _Oppiicatin onc These hole In Cheasning « aplitias hu ntefate C402), i. coe CENT ta Ae rage ts A ee oo Conmperen thes wav. Tag tt uy : J r con Utey Trtetpace (Cy ‘ sae compra 1a thohn Rojis om ww C1) Root lathtocs: LK «TK 69') is 6 Root wufrdow tthe wnuin warieth i an les —Jkinkey appltcetin , Se5v4 a4 the ee, | for at Other widgets lacsioiagh; o fy CHeaked Cee) 4 Cnsteen i tte “2 0) e00T tnt nda@us Stu OCverau sfse ANd apfetione on The &pacFeerfens rain WF nctow 9 rmanaqe event kag, cwhtir Libere Yer L0H$ Irberoy, 2 ey auch a4 btitfey CLR OF DYVIMLLLe Wivermens fe. 2. @) WIDGETS 2 - 9 WWitclyetr atte tr bithileti"ng = b4eck of G1OZ , Hepitccn,) yaufoty Vviteted Clerrreno” bectlry , Kakols ,feyp f ete pretele, th. ¢ abe Created | usin phiehey oe teeatine fairies CHE seas —ml', te Ja bel (1) erent) eke. @ Caen wihdge pay fr owh PLiopertys % hihavfar, Such a Fert Contes, Sire, Cafouy & Vent handle e G1eO METRY MANAGERS 2— 0 TKintey os oy) Ce rn avenge pack), a gerd)’ y & pemeees” 0 Yeomestey randy ee ‘pesporsitve grr ass7ng/y % posting widgeh ewithin thoky pleetint paweeyt frets 609s Root windar, {rd zu Alle YOu fo Spuify dow Lidge) Shouta bo! Relakive 12 Blok One col haus Hof Saal Sisize wehbu fie window fi Resired. W Event Haucls @ Gulotot the pile 0 to Respona to threw Lies lager Stic as pectterr 1 pee Aowemnont o y & Kewhoard Inpug . Event hanes oye Priced Cobeed in PME ty SB pecific Aifine esszren peravtoLw Oo} ule it tp deselrce &) EVENT doops — a Lg IMM ouety Wither fre event Stick a4 rrmauise cHe key boasd ry ee antes Resizing FOB! tue bait, lnukpow o on x if ate ult ty PebHe vmoclicte fn blige te the Steps tnvolipect jisorrm Mit lochihag ary TUE ty Alter Sluaper O77 Fey Seen, A , ry re ~~ Brut dAloLulepicare of olsen Tug ropa 0% tikite Modiute 2 - ° ’ 2 ( » ZMporr THE TORTLE Monute FS phic Armpent the 4urjie Meckule fn Hotes, Pithey Sltuipes 2. Pnpocet- pres SA 4 &y TMT ALIZE THe TOR Fer After ferro q AtUsilens Frblalts et . Lut obfece tr Bacto 1, cleus Shapes on Sckeen, t= tustte /Tuste (5 97 SE THE PROPER TEs ap THe Terre + YOU cay, Set 1G. UL e: Ob feeg., oes : LE 4; Cala , Shape & gro ? an bhp ATA a ‘ t+ @loulu Blaeg ny t+ Shape " tihte) tr Speeck (3) .. A) Dito shapes 22 in ipo olan SHA per 1) te Slee, \ Borie obj. td TT) FRM TO Chuewn Shapy + See? a fovwased (distance) © cKescle C Ractitos) o backward ¢afsfance) ° Goto crn gy) ¢ Lalgnt Cangle) BS! 2 fext Congte) prvoqtiom f- Jmpomb tise $= tte. Tusttel) t-colos.("' Black”) t+ Shape ¢ ¢ TustHe’!) t- Speed (3) tos € fr srance (4) ¢ t+ Foscocdid (00) €e sefgne (90) tite. clone () Sy END THE TORTLE Sessrans- fred all Peek ve end qty tutte 3tbsjor by bekeny va Olorie()’ methed . 3, pilcuihe Hu pucces of eattng & news window In tkinter, Zncude Alecessar Syy ond Code exonnpler. C — ee a a window in Ykinter rvatiye © Lnnpoyt winter Mecerte os Stuur limpostPry “Tkintty Peculp th Yous Python) SCoipe 2) Cikeate tre main winders ( Roof indow) 2 AML TKO! cory tieuctos. Ft Cy eafe The Nan Winclew of You appeceson 1) yo? eg the Rerctionr ty Cen Q ideo a | condor wo OpHonatey atf{fre @ fier, Ye open ALoeuy On Ate. when Cebrain on io THT97 ee Brice a, burtton click . 1 WiC? Cerecene OA Hat windows e+ UAE Topp, {| Ont) tee ope ta Ctteare, celedipirnet cuprclooes, @F Actet Mldgat= py jee wWwiRclOLLYy 4-3 PO Pilate 17H New cofpetacs wie Citgo Suck 'e label, bution, Onley, fratoly ete, > Iadinetowd: t a (© Dliptay fis nie beeen es BLL Te Pri, Lop () fo clitplay Alen voinclacy Cel Sheep a Tkinly Cverd loop : 0 \ Was EXAM PIE? >, ‘ Prtegiurm. Tm pore thinver as 6k Uh Cereake —ifrdeauntr © New, Prides, tk Toplevet () TH ePrice tHe ("" Noto keilndaus') / ee wWirdaw. Teermetsy ("200x200 oD) | NTO en. Lex =" Ths PLO cerincdla 14). butt = th. pa ay Pents "cere pe Keegy dsipdlew pee tg = One ale ~ Asi ncla@e)) Hoot. mainloop O SECTION fc >y bt OTs cette 4 KA ctrence, bethleen sna. Pack, Ces ANA PLACE Yeormeties maneer, wn Tre Peovide 3ccrastos Cuhese, C2ace Mey, Manaye CMMild be. WISH Susryernly , 0" —* 1h PACK OEoMeTRY MANAGER oe 2 Qugas Vey ty lagen faa Mngle , Poesloorr 4209 ge Ver prea SEK 0 widgel eee packed Into contener one ageey anc, cura ovettappini 0 flack i 2cegy ps Le fos: sirmple leery Orel ey ft SUifethbe “Yo Yuck TEES wo erate Yipee Cruze, : 0 Uetut Yous cteawing beste olaymiete wher ci/Lgep Guth Stecked In “elInean paslor) With at Fbelbau , puoren » oF shoopie Labsqs. xP CRIP CiLameErpy. MANAGER 2 > 9 GEOLANTE “PETAGER Fp A Peel lrke SMeurctyx 9 Our e columns. ‘ E widgey ae (HaCCd ig Siptilfte, ROLY % talurmry £ : ip ees, {02 nmewe ce, Cntuo! over olay eur. 0 16 Cortef pasties, DPM csr tee e Ye Mornment , phray ‘BHeby! & “pad? v 4 esa p column spon? di Gud Yo SSuituhte for Ornplex of i Mittinir wsielger that peed fhe abared » B- PLACE CecamertRY MANAGER E> ~~ go © abtains: yo to Snecife] emacp lootelMety,, fe cpnatel he place = pu “Cx 1Y4) euhere cwclg ey + widen eee positierea redlatoe ty tts n js Conran Ss PRT ele torn - ‘ & You can petty opcey ek tal, ies 0 seeotn’ , ‘ecety’, (ancnos’ “pone rncctlt’ ol ye 1) ceniuot pos/Honing Pusuicley — cbgabute postin og Qn) Sule. | . en OLijtrr aay oer RialLo®, peetecie. Cebual, Cve coldgeF pelacormuar, Oe mma 9°88 dey Magee: OF chy otodyouep ONS 2, Wk ¢¢ The choice of GYeormel | ehtisy. FYRALIAV ed chepgoncdy § in fie cerrapaendly, Of, Th kia Out sac, eves ctleelte % /evel e4coatta) a aac Wleiget EP ue a Peck as Siui7x bre for Get bk Quiftahy cy oui & (lace ia Oley Us tte 4eirmranh, “Srnple dintey re Cuts, fer esl. oe eutfahle fre prrecrse ae Rerest a a t @) $calab uty 2 AfScxuty tre fro portance O% loops fa Gsa- Rusa proquamrmriug wir the turtte rmoctiute, Peroujcle exammples Of NOLO KOD/25 CoN he LYyich FO Strrnpripy scepeetective Tasks Suithe og CLecaeas/ yy qmuttie Shapes or puss. 9 doo pla Ceuetar Lele in Geapeta ngnriug wolrn fie “suede nnetue Ob fay Mies pac 4? Akedmrncue sopetafyre FUsht, SUCh as alsaserp, MuLtple Shape ox petfeurs ¢ wlth Mplrnek cuct g ouy2i apm. ew using deaf , VOL Con 34 & Lamp b)n 1 Sa lice yeus Cole , wake jf rose Foadable wr Pit, key Recuay fer Prnportaixe Of KOIps fn Yeats peeqsannrnig ue Pu wo tffiden 9- dowjay heaps te aval wiepeatirg tae Samre code muttipl firme 7 LT leeds 70 Sposta % TN efficent progsarms (2) Pleefbitity 2— loops atueenss peo fo Cas tey cre 4 Yaregesien OF Te PArernecpeey ge Liacasry due - Aleoon hella ‘ ef fue Shapes or Pears yore 2 - Loops rmakes at easy ay Stole (hae gdlaplic » lay your 7 ao Kagel or More-corme x 2 with minal effet 4) Reacabitity 5 - by using Koop, rou con vrnde flowy cocks 7m ciadabk’ > f t+ color (Coles) t” Chucle (100) & fepe (90) 3 cOuaullng Netied Pattetfy t ~ TNO Mai z ¢ 2 fuse -Tu ig _ n4ange (gm eae ety for- In Aarge C4) 2 Was eS oo) = ; Left (Q0/) tepenupl) > Lonsaid (20) te sught (90) t+ fomoad (20), &> leper (90) &+ pencpun C) Z- wulte a ye puogeiarm Anet Be cy Btrmplte cateurctate HUZ cof buterd Yor iq CO-9), eckthometre opeltaticrs (ty ~7Fi/) andan entuy widget Yo Usa the USUY* Lretucte the Necess2- in es => Armypow tkinta cu tk Ake on-ottgit- Chick Coligit/: ry ty « PAE (EK «END, C/G /# lef on optrate— CU (opus)? Cy, Ingen (tk Eno, operetre) ep Clertake —Leguerl) } Expereriioa = en get) ~ ere 5 eval Cexpecssim/ CnitALyp, cletele C0, th END Cnteey, Mrbed (®LKR.END, sty (LCE) ) — edteptrn Excephm as €$ Se eripluy » hele. (Oy t+ END) CNtkey . AB (EK END» ERROR) CBOE — ER aK Aa” L100, tHe ("simple Cutcutater” J eNiuy = tp, Enger (2100+ » csielfn ~ 20, BH (tp, = 14), PP ey =tk: Ril/ry tp ! euuay *QHUA[ LOW =O, coterrm ~ 2, Blimp, Spans. Paatx> jo, Pacty > (6) . Hi hg butters = Re Pe PANS PAL Fry & " a Gain ys Oe Cees teak e kan, 2 Be BES RII Sa cu Chere Uae he in rae IS Sant Bip Geir! 5 ) Oe ae ap | dow =f. Col= O : , fy buten haben tn kektors } i button —Labul = a CK: Bieroa (Lt gor nen f- = bition lake ! widly> jp ;halgnr °2) Cormrmand = CHLMUKR 85), ?. Geil ( Low =L00rp, Gatun = coy, Pad na ay Rady) Ose f © Th. Button evap , Fext op) Bitton abet, wh 'n-S hegnrs 2 | Conrmaned Lann bela . ner = sion LOO cco. x Soe CUD Click Chahety ), YAU AE (200) = 400 Cal a ¢ pe ts, lay os 2

You might also like