0% found this document useful (0 votes)
4 views5 pages

Python Assignment 2

The document appears to contain code snippets related to Python programming, including database operations and GUI elements. It includes functions for creating, updating, and deleting records in an employee database, as well as handling user interface components. The code also demonstrates various programming concepts such as lists, functions, and conditionals.

Uploaded by

kingalan
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)
4 views5 pages

Python Assignment 2

The document appears to contain code snippets related to Python programming, including database operations and GUI elements. It includes functions for creating, updating, and deleting records in an employee database, as well as handling user interface components. The code also demonstrates various programming concepts such as lists, functions, and conditionals.

Uploaded by

kingalan
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/ 5
ENT Asso Ae Treen re (Pre a) : reactars Soy nto Spaces ov Spetior Cho x > eset oy 5) Tape = Python”) Stave” “oa” ) ig © Se tn ln vange Cio0) : , Print Co tek ") te Ly,a 12,3,4 5,5 by Ws gex(ry RY aes Diamond (yous) 7 , Ne) 8S kn sane C1, rows ti), tes t6 vonse QO, (vous 1) 4 Li: Prime (era « Beitey Wile » Y= (tary. Pink Can end e* “ Ne hel n-t wove HON my Sats piv U pag SALE Comme cher + connect ( host >“ tora host * gyn? ‘t ; wee woot * — Passeoaret > Vimy Set patios’ hy my Cus © Crm: Cursor 6} uv aur sexe cute “ “ my oe ule (° gyeate database “employ ee dotabrs’ ™" cat execute C¥ tue Employes — database J geet execute cs Create table employee (emp-o Int , eMP - fame Norcbay (20))") ‘som J") my Cavexecte(Qacert “into employee ana 40 rou ent (Y Snort nto employee vou ( 9, ‘Bora )”) imgoia emote (te update employee Sue emp-rome "2 Oty ” WHERE empad > an) my OM. ercerle C Guar # from employee “) So x Bn mgou ! Patt Ox hg Si ere. (* date for empteyee sade emp. ‘eh = 1”) Our - execute (+ “Y delete Som enap toyes ” ) Conn, Comms ( ) Gun ose L) ee os Paar B en 20) Stannums = [ tbo!) 3B 4% + a _. 2 uns 5) lak ama List Cmmap (tae Seve Mame 3) | Prat (tat Nums ) o - by Gur teak ob Xora 4 Wie Coust, 3, belage basa on A s | ote pias yom mange oo | 2°) [t-2,-3] AL) Apert banter os Ek | Sum te ater — Lenpest mekere: box def Show mressoge er Pre sca ge bax ~ ShewSn}e e° moxage “1 * Buln teindow = tk Te od Ufndow Gtle C* Button") butipn = Lie. Burol wfiedows , text. Ctacne*, Command = sh. mettage) button - pack ( party = 26) bundews © main le pO . be quitarc: : + clos 4 ; gop cat. Cou fat * neds) | gaye fat = Sect Sed ndhet = tnehes add (Self, otherd + def — fetod feet > Sets. Seeb 4 other. fect total —‘inches ~ Seth. inches + other. Sncher By totatluehes >= 0; gotar_ incnes - = t2 dota. Peat += 1 reumnDictane ( botot Fleet , totol- thes ) def Sub— (Set, Othes): Yorat. Pheb = Litt Ret + other- Peet betat- inches = Sete Gnomes + other. Inches 3 totat_ trohes L0 ; boat —tnehes + = 12 totat_ Seep = j Rturn Oibtann ( totot . feet 5 total — Iochet ) def gt. (Serf, thes) » Abtanwy. Sols rot & 12+ Self. Snehes. Gittanm 2 = other. fest # ID 4 Others Snakes, Autwin dw fant & dulange 2 a a . es = a a > Cpa Sask, Lig Sneha F webs’? / CO _ Ore Dittanu (20,6) Dri = Didone C*.3) Sum. duulone = Dt+ pr Prink Cm Sura") Sum dutana . dopey cy diffuan — dutaut = bI- Pr Pant \n Oalferene |) At} few ~ dutanu . adaphog o iy OB1yd2r: ~ Pemt ("\n De ws greene han Pa" ) ess oc po: Print ("\, D9 3 qe thon O1.") else : Prut C\n Dr ond Di au eojuah .")

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy