0% found this document useful (0 votes)
24 views16 pages

Computer - Practical 2021

Uploaded by

studysfocus82
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)
24 views16 pages

Computer - Practical 2021

Uploaded by

studysfocus82
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/ 16
O. Write a Python puagiiom 18 convert temperate to and. from Cotnivs Fahnenbeit Aru paint ("Enter 1 te conve demperarune 4am Cebus to Fahwunbsit”) prunt (“Enter 2 49 conver dornperotwne {ptm Fabrenhuit to Cebsins ") jo tat (input ( enter your choice: ")) lifme=4e —cet> Heat Cinput (* Enter temperosuse bo Cetsius. “)) (dap = int (Cae 9] 5+ 3a) a paint Coot," Celsius is”, Jah, “in Fahwenbsit”) med: “ (dab Heat Cinput (Enter domperatuas in Fahrenheit ")) Lets int (Clan = 30)% 6/4) paint (Yah .” Fahsenbeit ls”, cots" in Cetuius”) | i cn 4 9a. LOxite 0 pragram ts clisplay auternokphic numbe between Land 500 | a7 e 7 7 ae. Peg dns fet in wange C1, S00)* pes a i ieee a SS A te len (a i? | te pete pow (10,1) onset eee a. oo : = oan’ || _puint (“ Autorrsxphic numben betwee tand 500 wu:”, i) Teacher's Signature _ ear eee ee 92 Wxiteo program 49 Bhow ALL nen plume numbers in the entesed Aonge bos > int (input * Enter Levoer xange = ind Gnpud (* Ertex upper ange > ie ifn sage (m,n)! Hinds ger j in nange mnge (2, is : i SU feiag> peo = print (“M_nen- ypinee ruumnben benaeen.on- and. “one” | book e “ pecnct sg Q Uineay Leach. pata igi a Pao | HE Tiga rere. he int Linpae (“ “Enter noo} ements 18 bapa fn abate =) Di sales atic" aoe : are * Enten eke ments : ae ce oe 3 ea (Fries ehamnenk that yo amb wanes) [perf Bh eee a Sts oronn® paint (2, "it prezemt ak index rambo *U. inclex G2 = __busak ate Wei print (2, "is not promnt in the Un”) Teacher's Signature Nie een ———— |= y tonite 2 pregeam 49 show fibormeci. tes up fm hin Ueest 17 peLt. Pease ee tae ieee ees te Flot apt Eni ee a tome sy Woven D so is ae || a : i fpsine lad x pauenes th) i oe nge (1, N- ie eee C2A+b me LL prunt (c) ene |__a fas I. aa ae ae = suep= 0 Cen (eh )): Pence calito aoe 2 ere [os Giles “To o1 chlid=="j' oy chlil=- ‘0’ ech Ci] ==‘o Velen ceen es hLide> w! H i meee RY 4) Wid chit >= "a" aot chLil<="2" 04 chlil>="A’ and chlilc='z?: coc fein tara (leni(tn x Oe ee i | Toachera\Slqnature qr Aru - 08 | ebiy ch CiTtstowen (D2 cette ec oe es ewamicnaraes = - pee ead ies Pict ae. Bees Si print (" Vowels: [prima (* Uppencare ; a> inpue * tnten et s*) nae be alert) ee ee ee ae Higbee soar i eee paint ("Entonsch tbuing i a Ga i elie: pina (“ Entered ktuing ts ‘not a palindaame » —C8unts Ci] 1 punt (counts) | Near aoe: j oe er I for tin nange (ten t1)=1'=4): Me ALIS 1tj+1: sit fh ees No) ts) Ti WAG a nena salt aS eatin eNom Se) a. Re | Ses pe : I apt tin viang Came Oe | yay. j= 0) amet (bai nese Se eee | ORD’ _fith= f i = i a om |_tem + Ca*b)/acp print (“Greakes Common Nui “0b Teache Date. me C*Lesroest Common Mutiple earch cau (41a) os ae on ae 6 Rae aoe +s- ro tandem pnt AAnolne ene YoStinit ongiaN (Serre) MET ae se nee nis eae our yang (m): cas | eae Sinientouin bese ©). 2. ly aie eae [- he aeverhi WOR EIO Re OU A ‘ =u) Giles)! oes ee [estos pili elites) aan eae Jeter |_—poune (001, end: * 2) aaa a le - ss Ola. [ Giver an inegn umber cifine a function na neck pseiat Dice) ___ joohich can print a: policeionany cohene the kets ate numbers betweon 1 and | ee ee of Key. The tancbicom ms - del print ioe): oe | d= die O aes ena fieeleps altar Nie J a Mb a n+ 4): eee ee _puint (a) (paint dica ie g13 Gtinen an intern mumbor_N. frat soto i canbe enp @ tiem of. Ava Semni ~ primes not (mot meconanilyy dittiner).Die functions to rorp’ | Cck a-neamber is prume O1.mot ancl to chick A Mumber i Ler’ Piaime Ox |enga - i ow va unl cela: See eo leak ae ee ae _ wali eg he aes QI yo : oe [Exteel Gal Pe oc 18) Jip Conecx Cok: uC) |__paint (* Yer”, enot=* ") ee - jel: ape. punt “Ne” ends" ") oie a prsepom fo x2ad dato. juom a tent fle DATA.T#T. ana __ | Qi : : : ; tre-|| det dun): on [42 open ("Data TXT," st st LE Sale fsa) ei |_m-=mb : = len) = oni = Jen a mx = max (4 split), keys lend : : | int (“ Wosol walth manimum chasactet "mx i) scsi Teacher's Signatur Date. eee Vise CRN tee) oye |__f0051 {nn range (ten (94): $+ joe ACi== A’ ou file> ‘a’ o wfiJ== ‘ce! or a Lije> se’ oy feLid==*1" py wEid== "i? ov iLi]==*p' ou wLi]==‘o’ er aLid==v" len Ci de> * uy: Vevey : ie 2h a Li1>= 0" anot a fid¢='z2" ox x Li]>="A' and oli 1¢ ='2": acetate a dle. FORD” ~ fnposue cov dota = (040, ‘04, 3, Lia, ‘ao’, 3), (14,'a3', 59) |oi-th ppen (“4temp. ey”, * "VW? meade =") ee ee vowiten =.cAv.Wxiten (4) |_toniten, wlteows (data) 1.0 Page No. Date. voith open (temp. ctv. newbine =" "Jas cavfite dasa cov. meade (Cavite , detimniten = * 2) — {1 Ar In data « ~ oltre — print C,", join Crow)? ——— a. Create o binany fie with HOU numbers name and mania Input a HOU Yumbex and update the maths. a ——— — ae limopour pickte Se eee ee 2 Bee ss ee eu! cases BN a baa Brats ee a Hours i it nat th Rec eae)) eae ame = =) plate 7 ee ree nail = int input “enter Masia ae | | Alactent.appen ullsistyesitevapes BIL | | |__ang input tere Colley Di sah plete. durnp (Atudent ae cae Re ete as i ee depen(’ Atudent, dad”, stb’) se : me i ‘. 2 FORD se a: a See Amys ass Atudent = pickte. lac (1) expt Ne: Page No. except EOP Eo 5 Nee beak Haass ig a | ohite amt Neowoes es y's —feunel =< False pis a anata —H= int Linpus ("Enter REU_ number to upolate :” PESOS yess a Tole Ni ae ee print “Name ins”. 2 011) = ete Cision Mo Hea 2S Sania ——— I £lal=m ais. Vem inany fue" Emp-dat “eentaining detass 2Uch as empno: jerome: zatony (exparato':’). vonite o pythen function ts ditplay ane ry ne eg 20000 and 40000. eA Grd) ee aaa : ee Sapte) - Teacher's Signature xf sueaolline ou tohite (x): oesseideides d= x. mpuit V2) a if (20000 >= Hoot (2La1)<= 40000): — Pura (x). ee ee es mee : Feces +}. purmaeirrant (I Se ae ea a e : zs |__print (Eaten 1 40 Push”) 2 = print C* trntex 2 4e Pop") pn e | peti C Ente 3 to Ditplay”) Speman vaio i oe Paden psionic liestel sD) a cece | |L=4 ee age I Fi sesstopatl teen cegiaggaaast |_—ename = apa (" Entes: &rployee Noma") H _ep> (ei ,ename) eS 7 x |___emp- Appenol (ep) _ IL eid ch== 2: = ante ena. ee estas paint ("Stack Empty”) : F Lid, ename = emp. pop Piuirnt (“beleteat etemant b:", eid, ename) ety ch == 3: t= len Cemp) tohite 1°>0 : eaaot paint CempLi-11) fein fj —— seh | — patna (“ t0n0ng Input") E f ee IC c= Input | de you tant 49 continue ox net 2” ) elena Qa0- “me memento ga: i ations. eet re [eee Blt oe — —- name = input (* “Ente beek nan.” book. appent (name) dy pep Look)" = sole Naa i{ book =~ C1: I panes: tack serpy?) iriees mee a int at popes” isthe lout dutiten! stint oes FORD’ 4 tpg tn. ce oe % | pnd Centos 3 don display") chs int Cpu “trator your choice: — rian pe al re en aes _nome input (“Enter nook ame) CPR eee ee _bepk. append (ramag) Qaa. sterusin * Uncteiplou2” =a e | pate Neleseat bk a ent pop) — as book = L1. Seiaioae = bohite Tsitse we ise pint (Eatin 4 to fnzesct ) aoe cle hehe) se sees or eeee

You might also like