Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
35 views
Python Lab Notes
hkhkhk
Uploaded by
Sameer Sheikh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Lab Notes For Later
Download
Save
Save Python Lab Notes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
35 views
Python Lab Notes
hkhkhk
Uploaded by
Sameer Sheikh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Lab Notes For Later
Carousel Previous
Carousel Next
Save
Save Python Lab Notes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 26
Search
Fullscreen
Name of the Experiment Dats type in pyfhen a e]o3]23 Joules fae Oo entbte Tefence ta fe Prins teking tip from Veer 2y)03)23 Ps [*3 pas 1® ° t odds py that fakes 2nor's as, Exmmand Vine @rgument—4 Paints iH Sv 24] 09) > oupes}>a ES fo enc sicoenmremnsTS) © oF eek decimal equivalent Ye Wa~= = Vin 2ufoa]23 pyjes pps 24] °3 [29 pales wap + Print loops over a Sejuence 2¥ex]@ oy os |e wep fe Print Counfdown for anambes 2+] ]22 | oufes)aa [ 1) wap to Print Sum of all Prime no- till no os 23 | D4 es/23 IG) sep to Print Sum of even to 2 oy]es/23 lo Fipenace) series til) 2 million | 12 ]s)e2 ala ©| Pe Fe demerstete Mist gpl in [iy e'foshes oufos}as Pythen « ap te Compole 70-oF chara cles, z ad Cte sia ee TAT 18_|es [esis © esp te print each Tne of
eF character BINH | Oe | o: aspes 3) 4 Sfere jna dictionary leae ai pee =" in Paton , to Find dale type. 9 oral cts he Gone eS pin Co. eee Python”) uF len] a eg be a Se. J : eer el ae (Sie = ay ‘ es OC" apple aa J ge 8 sh ple” ) “banana 2 sae i Ofer Pea nee point ( Hepec)) points Ctype Cb) Print Cbypece)) Ez Point © tepe Ca) jeter (type cx) ) ext Clype ()) pant Gece) point (Eype Ce? ) Tem CLEC Cmessisa in pain’ sete coal) Print a e Guy Meme) i ay ey) ete Geeay riceKe class Pleat 'p
for Checking X= int Cinput C! enter the me if Cola seo) 3 oe ae beint @oc, "ive allleven neeber elcemiss print Cx," ¥s a odd Numbex") r-_using a for leop wap thet print nm out decimal cris | Sats Ee Ve = ee al ‘ eee ADE pant (fro end =” 4) pstvetnod Y= 2 wife Uy ean axe? 2) 1D = aitallott 2a) Entew Ee Un een cme Me lea , Even Nombe x enter the number — de = ree eal Numbee us) 3 0-5 08233 025 0.2 01666 O1N28 OrlDS o-ll1) 04list = C"nello", "@ivansha" 1) S555) True] pepe = 1s 72,3, Print (type Ciist) ) a Pint Ctyte ( tepie)) Epon ale epcmnel@ulentlieh iy) Point (ist Cig) foint me lel tI) : Hb) Ain 2 ar velng x while beep the asps fhe vser for a womber , ord) trintt © Coon] dour fir fraf number fo Zero + mumbes = int Cinpof ( Menfer the number 2— wi whi fe é Number y= °) : Rint (rem ) Num = num—tw SOangn p the NumbedVa}ues dent ce coed four wiles > Lape even — eI) fn 5 : Lepoxt evo, at odd = 0 Sunn = 0 N= int (input (Y-Enter the Number >- ")) by jin range (27 ei) = Sumy = Sum + b while W>! for jin vampe (2, int Cm. sirt Ol) +4)? if. (Leaks add = add +n re break N= = Print (om — add ) as Soars |ONS net 2 ng == tna: n= ne (a oa -+ ie me ==08 a aaa 1s) ‘elses pzint (list) = elu list eke : s xelurn_o Ne inbCinpot( "Ener a Number s— ")) } n, =o ras add =0 a £ib (nine 02)? parca a nea ae add = add +? print ("sum of even No- iceepeesoutput GLY Be a Number :- 5° (2.8 ,34 , ty mele =ss, fogue ,4e3es , (96UL asst Magoyias > lwazos | Oo ed S386; 26 Folun96 , 134903192 , WROFS? B9T8 D 2.03650 11044 | om of €ven Vo: in Fibbonaccl :- 266 581ilist t= eee 30 645," anand ESE $e Mist g a [to, 26,90, +07 : aE Accerting fee é te using d Pind ( lista Co) 2 Lo foint (UISHZ0=19)) ah aon Print (Ust2 [ic] 2 Mis tt using _Stice N= (Weis /4i)s leven sndom point Cn 2: 4:24) print Caf: 227) print (nfo: 47) Print ([ #:2:-2]) pint _(_n [ #+ 1007) tt impodant ra len(n} n> append C11) n+ remevel t) s im = a n> pop () ’ m+ vevergec) n-clear()output Pog =—S— lo 4-0 Index Eres > list Index ouf of gear eer syria ; (Remarc) £5; 64d ee rarce [5:%F (8,9, J to [11213,45,6,7,8,9, 10,117 Pam Se, c, 4,8) 9, fon C 1,2, 3/4,S 6) 4,8, 3] etn eyS, 4 13/2,2 7 |No. F t= C to, 22, 36 Yo , So, be) e ity pen 2) aa ‘a 4 2a firing (Ct Ce) Point ( tC-17 Print (+L) ee te Using Slice operator. = _ pint ( t[2:5]) ‘+ point (tf 2: 105]) pint (tC! 2)]) t(aj = # At imported Juple fincHiens . ___ += Cio, 20, 30, Yo) point (lenct)) Peer lo, Jo/22) point ( Coot’ count (19) = (fo, 20, 1)10)2-2) point (index Ce) port ( index (24)) £= (2) 3°) lo, 28) point ( min (t)) pore (rx CE) ) oe) bPetia sank (3, Yo; 60, on Clo, 30, 50) Type Freon: ‘type! object ces net Support ike. ssi 4h import tuple fonctinis aS 0 ValnePror : teple .Index(m) 2. ° 4o +0Disanshu staf Hello, Iy- Name is Divanshu . Zam porsving eTecH fem Phang eae ae “of lactic oren Code 149) import os , sys Filename = inpot ("Enter File” name 2= ?) if os, path - tefile (Filename) ¢ print (Filename , "File are exists,”) f= open (Filename , "¥") else > Pak ( Filename," File dees of exists.) Sys. exit (0) i [ine — Coon = Worf Count = Char — Cunt = 0 a a oy wlinesmnah ie tine Cot t= L Chay Cont $= [en( lines) words = lines « Split O werd — Cont t= len( verge)utp EE eile Nome 2 Dhansha tht aw 5 QDivanshu , txt file ave exisfs. Tote] nember of lines In file :- 5 Fet=| number of chavactas fn tie - us ete] Nether of Werds in file ?- 19.Een € = inpet (" Enter File Name oe i if os. paths (a eee Prat ( filename," File are exists ”) 4 = open (Fifename , "x"! ) e)se : Print ( fiJename "Fie dees net ews} iy) Sys. eal t (0) sfoy lines lo 2 pea izeots ae ee) |GO Enter File name !- Divanshy . pf Dansk fet file are exisfs. suhsnavid si eman ym, olleH a sgniveenign£ -of egellec hnitenvetn tT dnan morf heerTe gnivsvup ma TF qsuaD movrf marGla ass Import os, Sys = — oe |___filename = Inpof "enter fille Namer- {6 os. path, ie-file (Filename) e Print(Filename, " File are exists 1) f= open ( Filename , "vy wy) ese: : Paint (Filename » "File dues ook exisp ”) 7 Sys . exit Ce) a a fy= f 3 Pa nee Se ey ch in Nine 2 16 ch Io beg i freq [ch] = 4 else freq (chJ= 1 pit (by) tel = filename. split C*.*) Teacher's Signature *A tH isa c File. Lis Ln a iat (Gas en coal ete ee re FC ee pint (ch & Tan Ale) gee =a ee ae point ("st is o feet File. ")> alsa 55 Poiee (oe hoe) eae)Enfer file came are exisfs nowy o?7, Way Diancha. ter Files : Pome, wees Sotiris 2 er tats 9 /) nae meee oy, rt 7th" 2a et cee Pet np! 23, (R°s 2 oa pees \n OR Hels , Po 3s, 1A ay 25, eee, 't:*, I peeeue’= 1 f te et Fle ee Cop file rane 2 %¥z +P nygz-P File dees nef exists— mae P _wap fp Cont 0. of frequency in a shieg and spored itn 2 efictime = nped (7 Enter the sing 2-7) a: for i in sf : if f in feq : fe ip fin heq » keyc) fegfig t= 2 e/seys freq li = 1 Paint (Feq)oufpot, ‘ ; ee ele, fee sping - tiellos “He mee Divansh agrawe] oe re. oo en Me ase tee Bees ys 2, Nt 2, ‘a's Ft, > oo 6 fe ea © es es
You might also like
Hourglass Workout Program by Luisagiuliet 2
PDF
76% (21)
Hourglass Workout Program by Luisagiuliet 2
51 pages
12 Week Program: Summer Body Starts Now
PDF
87% (46)
12 Week Program: Summer Body Starts Now
70 pages
Read People Like A Book by Patrick King-Edited
PDF
57% (83)
Read People Like A Book by Patrick King-Edited
12 pages
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
PDF
77% (13)
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
260 pages
Cheat Code To The Universe
PDF
94% (79)
Cheat Code To The Universe
34 pages
Facial Gains Guide (001 081)
PDF
91% (45)
Facial Gains Guide (001 081)
81 pages
Curse of Strahd
PDF
95% (467)
Curse of Strahd
258 pages
The Psychiatric Interview - Daniel Carlat
PDF
91% (34)
The Psychiatric Interview - Daniel Carlat
473 pages
The Borax Conspiracy
PDF
91% (57)
The Borax Conspiracy
14 pages
COSMIC CONSCIOUSNESS OF HUMANITY - PROBLEMS OF NEW COSMOGONY (V.P.Kaznacheev,. Л. V. Trofimov.)
PDF
94% (215)
COSMIC CONSCIOUSNESS OF HUMANITY - PROBLEMS OF NEW COSMOGONY (V.P.Kaznacheev,. Л. V. Trofimov.)
212 pages
TDA Birth Certificate Bond Instructions
PDF
97% (285)
TDA Birth Certificate Bond Instructions
4 pages
The Secret Language of Attraction
PDF
86% (108)
The Secret Language of Attraction
278 pages
How To Develop and Write A Grant Proposal
PDF
83% (542)
How To Develop and Write A Grant Proposal
17 pages
Penis Enlargement Secret
PDF
60% (124)
Penis Enlargement Secret
12 pages
Workbook For The Body Keeps The Score
PDF
89% (53)
Workbook For The Body Keeps The Score
111 pages
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
PDF
83% (1016)
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
13 pages
KamaSutra Positions
PDF
78% (69)
KamaSutra Positions
55 pages
7 Hermetic Principles
PDF
93% (30)
7 Hermetic Principles
3 pages
27 Feedback Mechanisms Pogil Key
PDF
77% (13)
27 Feedback Mechanisms Pogil Key
6 pages
Frank Hammond - List of Demons
PDF
92% (92)
Frank Hammond - List of Demons
3 pages
Phone Codes
PDF
79% (28)
Phone Codes
5 pages
36 Questions That Lead To Love
PDF
91% (35)
36 Questions That Lead To Love
3 pages
How 2 Setup Trust
PDF
97% (307)
How 2 Setup Trust
3 pages
100 Questions To Ask Your Partner
PDF
78% (36)
100 Questions To Ask Your Partner
2 pages
The 36 Questions That Lead To Love - The New York Times
PDF
91% (35)
The 36 Questions That Lead To Love - The New York Times
3 pages
Satanic Calendar
PDF
25% (56)
Satanic Calendar
4 pages
The 36 Questions That Lead To Love - The New York Times
PDF
95% (21)
The 36 Questions That Lead To Love - The New York Times
3 pages
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
PDF
100% (8)
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
27 pages
Jeffrey Epstein39s Little Black Book Unredacted PDF
PDF
75% (12)
Jeffrey Epstein39s Little Black Book Unredacted PDF
95 pages
Python背记手册
PDF
100% (1)
Python背记手册
64 pages
1001 Songs
PDF
70% (73)
1001 Songs
1,798 pages
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
PDF
23% (954)
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
38 pages
Zodiac Sign & Their Most Common Addictions
PDF
63% (30)
Zodiac Sign & Their Most Common Addictions
9 pages
python notes
PDF
No ratings yet
python notes
25 pages
python record_4
PDF
No ratings yet
python record_4
29 pages
Cheat Sheet
PDF
No ratings yet
Cheat Sheet
2 pages
DocScanner 18 May 2023 12-40 PM
PDF
No ratings yet
DocScanner 18 May 2023 12-40 PM
18 pages
Computer Science Practical Amit Bikram Mishra Class Xii Science A
PDF
No ratings yet
Computer Science Practical Amit Bikram Mishra Class Xii Science A
18 pages
AKU PPS Pyq 2019
PDF
No ratings yet
AKU PPS Pyq 2019
11 pages
Programs For Practical File
PDF
No ratings yet
Programs For Practical File
12 pages
Python Notes Handwritten
PDF
No ratings yet
Python Notes Handwritten
25 pages
Notesof C Language by Abhay Kumar Awasthi Till Recursion
PDF
No ratings yet
Notesof C Language by Abhay Kumar Awasthi Till Recursion
27 pages
pps unit4
PDF
No ratings yet
pps unit4
34 pages
Python Practical 6-11
PDF
No ratings yet
Python Practical 6-11
15 pages
My research
PDF
No ratings yet
My research
244 pages
Python Programs
PDF
No ratings yet
Python Programs
25 pages
Py Ass PDF
PDF
No ratings yet
Py Ass PDF
33 pages
Python Assignment Suvam Biswas
PDF
No ratings yet
Python Assignment Suvam Biswas
16 pages
Computer - Practical 2021
PDF
No ratings yet
Computer - Practical 2021
16 pages
Python Journal
PDF
No ratings yet
Python Journal
25 pages
Python question bank
PDF
No ratings yet
Python question bank
13 pages
Python ? Handwritten Notes
PDF
No ratings yet
Python ? Handwritten Notes
73 pages
Python Handwritten Notes 1701013067
PDF
No ratings yet
Python Handwritten Notes 1701013067
73 pages
Maths worksheet 2
PDF
No ratings yet
Maths worksheet 2
19 pages
class 12 cs practica
PDF
No ratings yet
class 12 cs practica
53 pages
MCS-011 Problem Solving and Programming
PDF
No ratings yet
MCS-011 Problem Solving and Programming
13 pages
Dec 13, Doc 1
PDF
No ratings yet
Dec 13, Doc 1
28 pages
10 To 40 (C S Practicals)
PDF
No ratings yet
10 To 40 (C S Practicals)
20 pages
Loop Questions
PDF
No ratings yet
Loop Questions
18 pages
Python Notes
PDF
No ratings yet
Python Notes
49 pages
Python QR
PDF
No ratings yet
Python QR
2 pages
Python 2.7 Quick Reference Sheet: ver 2.01 ʹ 110105 (sjd)
PDF
No ratings yet
Python 2.7 Quick Reference Sheet: ver 2.01 ʹ 110105 (sjd)
2 pages
171
PDF
No ratings yet
171
16 pages
Python Handwritten Notes - 1 To 2
PDF
No ratings yet
Python Handwritten Notes - 1 To 2
36 pages
Computer Science Basic programs
PDF
No ratings yet
Computer Science Basic programs
25 pages
Basic Handnote of CSE-101 Course
PDF
No ratings yet
Basic Handnote of CSE-101 Course
43 pages
Python Revision Tour 01 12th
PDF
No ratings yet
Python Revision Tour 01 12th
15 pages
Cs Notes
PDF
No ratings yet
Cs Notes
28 pages
Python Unit-1
PDF
No ratings yet
Python Unit-1
17 pages
PPS EXP. NO.2 and 1
PDF
No ratings yet
PPS EXP. NO.2 and 1
8 pages
Python Assignment 2
PDF
No ratings yet
Python Assignment 2
12 pages
python model practical..(set 4)
PDF
No ratings yet
python model practical..(set 4)
65 pages
Practice Makes Python (Reuven M. Lerner, PhD) (Z-Library)
PDF
No ratings yet
Practice Makes Python (Reuven M. Lerner, PhD) (Z-Library)
159 pages
Python Practical
PDF
No ratings yet
Python Practical
10 pages
Computer Programs Code
PDF
No ratings yet
Computer Programs Code
70 pages
fpl set A
PDF
No ratings yet
fpl set A
13 pages
C
PDF
No ratings yet
C
25 pages
CD Lab-File
PDF
No ratings yet
CD Lab-File
15 pages
CS Practical
PDF
No ratings yet
CS Practical
74 pages
Scan 24 Nov 23 13 05 34
PDF
No ratings yet
Scan 24 Nov 23 13 05 34
30 pages
Python 3.6 Quick Reference Sheet
PDF
No ratings yet
Python 3.6 Quick Reference Sheet
2 pages
Functions Notes
PDF
No ratings yet
Functions Notes
12 pages
Computer
PDF
No ratings yet
Computer
41 pages
18CS752-Python 4
PDF
No ratings yet
18CS752-Python 4
16 pages
Py QB
PDF
No ratings yet
Py QB
19 pages
python unit 1
PDF
No ratings yet
python unit 1
17 pages
c programming
PDF
No ratings yet
c programming
26 pages
Python Alok
PDF
No ratings yet
Python Alok
23 pages
1696123699200
PDF
No ratings yet
1696123699200
73 pages
Python Cheat Sheet PDF
PDF
No ratings yet
Python Cheat Sheet PDF
26 pages