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

Python programming ST-2 solution

Python language notes and question answers

Uploaded by

ishivanshhh
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)
10 views

Python programming ST-2 solution

Python language notes and question answers

Uploaded by

ishivanshhh
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/ 12
—— 4 AJAY KUMAR GARG ENGINEERING COLLEGE Department of Information Technology Exam Type(STL. BOSn. AN... ake Subject Name: .Py-thim Pengesernorutes Code: . Semester : ...-+-++ Department Reviewed By Sodharoe” (Faculty Name) mt ee (Prof. Rahul Sharma) HoD, IT Secu n—f — Befre Wwe We of Mae breate Ateteyratdt Wy We Soobs7 Ss The break Abeer W used to cH Abe boo | frevretuy _ Yegordkod ot bobs’ Gnd Hon, 1% red +o Xk whe encanto ot O& herb Wh Ge Bycce Cndultohn ome - Ex:— \ =a wwe LX =o! York) Wipes 5s break bate 2— Exon Abe woye of fas Atehenath in boobs We pus stot in ihn Rol Ohevohons SS does para WRw erecucal th oy Parmar, wed Os a Wore bidder fo define O : lock vol Gde wWhye Mp acon bb Tepid oy wohe lmblemadelton Ut be added Joler . Exe: for 1m yorye(s): hos bbstok (Sach Combteceel) Galton Atk Oliyerde) oaathod: in ROW wed to Ag we end ot Ae Nat: veh Ui In paute + | The offtn dss cythodh adh & Ainge Vero Bh amedities tC ong Syrter L Lik - oblend GHO”) yom = crurriewss Oyen d | | | Ean tu 273d bord rte’ wd andi inet ox apt Yt a de wrfquiat dere « Ur | Com deck WA adtondeng er dos oud. | row * Asrttd (Herable Ph | “apy Bl dake ate a Anais ake | en+teo uae, he 01 | | faction te uate dae. Seomple + wumbers = [9,3,8,4, 2) ge Peoconaing otder | piswt (Sorctad (waar) 2 eukput > £1,2,3,05, 8] | | Deven {oe superar =4our2) ) | ind Cool (mame, | H# oukpet : [8,0 ,3,2, 0 | Senplain le ah sales res pire eat: ‘regen asad be eeas sutra Qndloninl dado ak O - N cot: wo ve iat Sent ta 240 tad. ey Loy) #% ovkput - | fe (qeck BI) 7 oukpt : | lei “ty vy bys nas aud * ere achat sn dare sore: enrolling wunolee ok ee [o: 63) Ge ope Se punk (Cluct L265) ax oukpat “Rytuew! Sima | - Sedtew- Bi eel S| Qub: Goytain wt Lange ixpakner , pregra.-- 3 uot unee a Tog ite aa song fad 40 PUA ha 43 iad Wagrorse (4,a--— 100)? ‘Dwob an piytion, & fon Teep vo uded Fe Heute eyes aaqaouer | ike a dist, dup or airing . . a he ange Lou Jp ommsuly worst unite toe Jeeps | | a e+ vumbsnd « y pe Ki (wet js seangel . mumebsnd o +0 Atep | “n) dnchaoling Loot ont) oy | xangt (sto, atop): Gumwute sao foo kart Wp xo | (out wort sncluding’) atop. 1. | “epee api wn pnt akop with Atep. | Snewrpl: prud. muna 1 ravban on (0: PELE mse) Qukpek 2) 1,2, 3,4, 5 Prukurg Abe Aarot lo dane * | tn ie seonge (i) — AgporL = nub Bt D | print (ee oqpans of. Sauonbersin Logue 3") ; + ip 44 Danqpatc tio t aus aqyort ef, % J Whe Agpore 2404 Draqpasr of te oe Whe 3 id Wag oa of A Tat aqpou of (fio 1b Ur egporr ef lo 32 00 qr opor op? § 5026 ee agp of © 0 3b . Amplumt 0 program dhol damouatrcho tu var o4- | Are dower witha Joop, pout 0 muonage oder ee top Anal: dn puttion , te shoe. cloves Combe vad wih bethiguank | whi. -Qhe aloe bok wo enueiled who Loop vomplilio OM LY Moudiionw ustthout betud, Joominotia M4 abuak otakemut - Oo. bruak ua encouitrfol ke aDee 42 aeippad | remit heat 2- fe eee Lode: usta condtiton + abou PPR AP Cromphs: pregiam woul Trak thor aletpo Hatha cosa por 5 in name C0): 4 | pink (ac 4 vba. : £5") ha tates 4 | oe [a teep qusiaba Caan 8: Implumant oe aqver ma ie scans ang Hod ney te cyore = ek (sanpidk (‘Gn agar : D)) ee ee =0) ot (yor 7- wont year, ua fs (yon anata apn) | Ort ad aaah | + Bubput- 2024 in a Lop year. + Inpt -1A00 + Ouxput - doo © nota drop qrar. Ruteo: an A yor io a duap eon, * + Ok in divisible dats suk ust by 100 ou « Ok do duvivible by 4oo. | 2. We chuck dio vordiiton uoing if, and slo. 2: Denentlee tat wurpacking tuplo , mukobl. esgpronerd Re Pai ated tf (ut )+e mublipte variable wr oo | “coor baton amd user WT ase cae 4 aw Aigrce. anbabhe 1, , Variabher . vaxtabls N= f shaft hand oid. (vartabia a “wnrevaba wil vUMIVe dhe valuro i hondoide (Hupte) : Sta tage feat tyjunpacked | Coches doka.= (1,2, 3) “. ‘Pes fapte unto vortabbs | prnkla) ze outpace | pois = [, ‘ews!) (2, 4we!) (3, Yoar')] uum, werd ie pare + i ("Number : Srem 4, Wed. tows) Bc siceae aicae Tgp iotn te a erung- Orie iteapdel aus! Kan tac Ot eer maktiodo . ——w g Ar oukpk = Hills word. | Tearerars tat vaing ae operakot ‘ APUL = "Ysble € 3 | ab 2 = ean oF | ouowlt = phot +" " abo 2 H Adding Opace bjw\~ | prick (reautt >) orig. \ | | sual = * Sledge Soin words WHR | pet ( saeutt | FF outpubesuowls - Ryton 0 tun. | (Mukable asquence + A yukoeble oa type of | eee Le ote Sak ak Meats sea ca has nun ey | sdamsta of Hea A nqpanet witout comida now ae Mok > 2,34 | Peet mp daca web Cm i) op wee to, 2, 8/44) 2. Mok > (1,2, 3) { ee append Ht Adding ntemart | prim (muy took) fe Ourkpat = U1,2, 3,4) | bot - £1,234] omy —Aiok rwWMeVve (3) He Soot | peut (my — iopeeee. re 2 vA a= Sechpp- Son\ & 3 eae Yager anc daha a nel? Cc Murer of agit, uppercase Oh LoWENCUST Sethe, ae crepe OQ Ache Jy se Wer BeWronce mip C Sader GQ Ackenre” ) a Tarkdoc dogs Vhpecoe = 0 \noweme = 0 Commer = 0 Ae Diyche ovey each — Chora Soc chevy Bowkence & der In the AOE a chook VE FeO Chisacke” wodsgit at ehon: AdigrO¢ dager + eae wm chee VE AK chovactty Oh Uipercese Jake dak chen. WEP): ubyems = 2 ah Choe EE checker a Movwurcmne Seber ut ches. WENO? \owertone +> 4- ae ort Ye Cords emt GE Dabs" dagits | ant C Ubperone Lea ubyercre) tyme CE lower" Jower cere }) > Sechon -C BLL Desembe wecuwsor 7 Uric a secur VE pre Ane Sechma of Se ws Recuvaioh »— Reecuwy 0% oO o re reid reemigie Where & Gunchteh cols Wey vepeokes unk UW Xeon Jaye care FO BYdhs FS tL: Wes Cermboratts of _Recaaiehh 9 de Buc Cart 1- A cndbon shet sorrinds Awe Yeewestoln : Condo Apert cally He a.- — Reguatve Coneon Gonetioh one % The Garcon Ce Concton co t- ox mods Hed \jonra. ra bem are AL, Walt wien Bevolicy” mie CamloX® ashe MK A xecwwsve sunckow 49 ae def foctenct CHS * ab Buc coy © \fNe=O% churn ak Recunstve Cost | | qoctoncdi4 eye: ‘pojurn Nt faatonot (rt) ee Cpr CS Omer a permbers")) eL= — Soatonod CH!) pane fottorrel oth, NLS Os" oui} a , Cope en o We ot wot amd eve a a c coor Where Mare Key ore Wwe uoeab and Akt Velo ore thoy peprors | chores Combsehenyor 2 — > chunom, Cerne ty yysheh Yoder © Conesie w Jo Create. dichorenes + Hallows Ww to dchre oO ductioho Inure, where We pycoty Keys and Vidas HO ANGE, Compo eahreess or: sre Kens ore Awe am ‘\ © ta 2:- TmWemte dicho anAro W J fe A duchom ory where Yrumisers Gnd Ane Voluws Ove fs lth eh — Yeenbert yunbuss = Las 27 3,45] ae duck onan Comntretesions Ao cverte O ducks ono, ok hos and Pur Apores popore act = Yr: mpuraee 2. Soy ‘um in unde Y ay othe Awe rosulng ducioneny. awk Caquart= aur) ov anumbers = D4 23) 4) 5) Byport-dcr = dact{C rom, mum?) Soy mum te Yule | prod (Aquore-det

You might also like