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

Python Practicals

Python codes

Uploaded by

Uday Gumre
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)
79 views

Python Practicals

Python codes

Uploaded by

Uday Gumre
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/ 20
MATSYODARI SHIKSHAN SANSTHA'S COLLEGE OF ENGINEERING AND TECHNOLOGY NAGEWADI, JALNA - 431 203 Subject: Python pio: INDEX Academic Year: 2013 - ho my Sr. 1 | Po glam ste calculate are of ale, 1to3 Leclangle and citcle feo gram to find the union of two lis} Atos" Froqiam te find inletsechon of tue st ¢ Proqiam tp remove ‘ith occurence ths S: | Program te count occurente of 3 each word in aiven sting 6 | Preoqiam to check substing fresen} 10 F-| Program te map +20 list inlo died. 4 froqtam te count frequenyy of pu words VPearing in string by dich q. | Proararn focgeate dictwithkerait 14715 Tod prearam tohind lenelh of list 16 ne] Compute the diamejea citgum lence IP 018 TL | feoqram to bend Catahinc 15* Jolley '§ Certified that SHr/Kum. Seqdond Ditel? Ani] ciass_2°4 Yeor Roll No. 4272 has conducled the above experiments with in four walls of the Institution. Date: Lecture-in-Charge Head of the Dept. Principal @ scanned with OKEN Scanner SF B® vss: a MSS's COLLEGE oF ENGINEERING & TECHNOLOGY, NAGEWADI, JALNA. 6 2 * Se at : . Y Quement utiles Motcboolt, wogram § Hf Pam ue den he base aod_heiall -{ 4 jangle a5 in cq tiiy Meo = bt bh Jo po pal Te elle aren at Geog le ual (" meg =" area) * Chub Inpu the bose ? 20 Tnpu he height : 40 aren i400 —————— @ scanned with OKEN Scanner 8D gs: a, MSS's: COLLEGE OF ENGINEERIN' (— }P St Aiea of Reclanale |}-——l_= inl (input (foley the engl of the reclang a= inl ¢ mat foler the toulllt of teclangle")) nieq of Reclanale = |] ¢ w- IG & TECHNOLOGY, NAGEWADI, JALNA. ¥ = punt C" Area of Ree angle is “area of Rechangle ) oule } 3 Enter ee Poclangle : ‘4 Nien of Rerkangle = 168 © #Arca of Ciicle_ i b= in Cupat C" foler the radius of il ” z aan Sot ciscle | Qiea of “circle off srk r paink (tien of circle is "| area of circle) IE == a @ scanned with OKEN Scanner c MSS's COLLEGE OF ENGINEERING & TECHNOLOGY, NAGEWADI, JALNA. i= — |ouloul 8 Area of circle 48.5" Resulf 3 ihus Le. calculale the ayea of and Circle 1 rectangle 3 | Page No. @ scanned with OKEN Scanner Be n, MSS‘ as MSS's COLLEGE oF ENGINEERING & TECHNOLOGY, NAGEWADI, JALNA. _ So flare Requircmen! : Jupiter Molebeck fol lis] | = [ 10,20, 30] list > 7 [ 40, 50,60 ,J0,80] Mists = "jist 1 Tish punt Clisks ) Ov ul [to,20, 30,40, so 60, Fo: 80] He 2. (oR) Vist 2 “= [ to, 20 150] {2 [ 40,50, 60,70, so] poe ee | , list I a Ga a oul ful - L ford 10140, 50, 60,90, bo] IE 4 =} Page No, @ scanned with OKEN Scanner ‘5 MSS's COLLEGE of ENGINEERIN TECHNOLOGY, NAGEWADI, JALNA. | |e Fin as ae EY islt = [ 10,20, 50] lists = ( 40, 50,60 Jo, 80] L_culpuf 3 | [0 ciate OMG iano 60, to. Zo} @ scanned with OKEN Scanner & us S's Cr = OLLEGE OF ENGINEERING & TECHNOLOGY, NAGEWADI, JALNA. [ran nn | 3 03 Software peguam [auf —pisgian Te ind The —ialnaedion of —| Jie de 2 Eee Wolebok t Tupiter Mofebook . Lisl ! [ lie! 10,20 ,30] 2. [40,10 ,30,50,60,40 £0] lists = Ty for ele in lisf 1? iH ele in ist 4 7 [st 3. cppen ele puink Clist 3 ff ou ul ° L.le, so] Result & Thus we find the inter telanlnl two lists. =| Page No. @ scanned with OKEN Scanner EE MSS's COLLEGE oF ENGINEERING & TECHNOLOGY, NAGEWADI, JALNA. given ; ee Peat J word ino lis Software Requirement ¢ Jupiter Not boole plogiam 3 lish 1 esfi car”. trock” ‘molorcycles “ car” | Car “Scooter, " turk", Scooter Motorcycle" "cor ” + {425 word = "Car" AF abou fo delete zid occurente of eal" in this isl punk original Til 2” diet 1) indy =O. .~ oul =O ales ind < |en (tisk 1)? in = Word L Count = Coun td if fount s-f 2? — E Tm — Page No. $< @ scanned with OKEN Scanner ® uss's couse = sf tei OF ENGINEERING & TECHNOLOGY, NAGEWADI, JALNA. o ind } 4 puind Undated lish 2) Tis LL [oulpul 3 | original lish 2 co, hacks" motorcycles Cor’ ‘Car’! Srooker’ ‘truck’ ' Scooler ‘malorcycle’ ‘tar! J updated list s Eco’ "turk! ‘madorey cle’ torte Usfooler™s UStoober’ rar) @ scanned with OKEN Scanner aR ai MSS's COLLEGE OF ENGINEERIN Fru. & TECHNOLOGY, NAGEWADI, JALNA. SI "There “was 9 King «We boos very | OM Is = she sip ee 9) Sel 1 = set 'chs) i £ -1 was -~ 4 there - 4 a = king = | IE of each WOT* wa lI @ scanned with OKEN Scanner &® uss, a MSS's COLLEGE OF ENGINEERIN |[—— == TECHNOLOGY, NAGEWAD!, JALNA. erence Sraclical to: 26 ———] tuten) pregiarn fo cheek if a —Sppeauin g i 2 ns nee , : ie oa dict df Soffa ; | Software Br Wuement ¢ Turiber Nolrbook > i=) while i< C" thler an alphabet” tl pha = inpul 1) ink 0" Enter word being with", alpha) oe = input 0 ss d Calta} = Word tos ity print cd) ol ° Enly_an_althabef P. Enter nail begins eilh f= Cian Bi q t Tlie word begins wilh vit Vaibhav = We | a @ scanned with OKEN Scanner ay MSS's COLLEGE MVEGE OF ENGINEERING & TECHNOLOGY, HAGEWADI, JALNA. dichtanary Oppeniind TT J ip slung iequen ty Using a a) @ scanned with OKEN Scanner pve) MSS's ee ‘OLLEGE 9 Wods = shing L- spliftt” L__dirlion ary =" 4} or thor in oad if chor To] nak in Aiclisnary beys (U0 Aigliengry [char Col] =f] @ scanned with OKEN Scanner ® 4 a MSS's COLLEGE oF En, — IGINEERING & TECHNOLOGY, NAGEWADI, JALNA, culpul ® 3 ie is asy jo undetsym Qe ribo Ps Pie eta) bel) i tus ft Understand "1 4} : fesulf ¢ Thus we Create a Ticlionarsy with fey | as tieh chuacker an value as / words Sharting with character Lt OT _ OT aaaeeeg EG aS RST AETER CR @ scanned with OKEN Scanner Sn a fui 3 rupiter otthos pogrom 3 1 at Count = Count + L tec lenolh (a [227 ) 7 tehn coun lishdi = f t273, G86. Fo) 9] ° ot chalk - (list 1) w fit 1 34 2 = 7 no y tn is Isin Recursiod Pe @ scanned with OKEN Scanner ie eee a 2. MSS's COLI = LEGE OF ENGINEERING & TECHNOLOGY, NAGEWAD!, JALNA- S Qs [Sol Lware Requirement = Turiter Notebook fiegiany : - ima ma h class Sphere ¢ def. | init — Cself ro self. ius = radius def eslctirimntirente Crlf) 2 Yelurn 2 % malh pi self fodins def volume Cself) refuin (41s) % math -Pr X selk -radiusy y= int Cinpul: C“foler The tadive of sphere yy obi = thus C1) - a i Sele end @ scanned with OKEN Scanner Cir Nolume of sphere 8 5'25-59 Result S$ Thus we Computer Cireurmference . diameder and volume of sphere using class @ scanned with OKEN Scanner ——<—_— NGINEERING & TECHNOLOGY, NAGEWADI, JALNA: —iaclical poe 3 12 Letter of Cyery word Software Peauinemen} 3 Jupiler _Pobebook program 8 : Lobi = open CY fectfile 2b) "2D fob. Lil CO" Thre was _a King «he was Very brave "4 Fobi . close C) Fobia = open ( feslfile 2. fxF™ 1") 3 = fobf2.tead O fobi2 + close 0 $2 = s-fitle oc) fobjs = open (" destfitler dnt", 19°) Fobis- Loite Cs>) Lobi. close 0) out rut © There was A king. He Wos Vay Brave Pesulh : _ This we caplalize the fist letter ot every wold + IE ——S i I S——— Pays No. ———>=>>S>SESES>S== @ scanned with OKEN Scanner

You might also like