Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
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)
33 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)
33 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
Python背记手册
PDF
100% (1)
Python背记手册
64 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
Python Practical 6-11
PDF
No ratings yet
Python Practical 6-11
15 pages
pps unit4
PDF
No ratings yet
pps unit4
34 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
Computer
PDF
No ratings yet
Computer
41 pages
Functions Notes
PDF
No ratings yet
Functions Notes
12 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
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Python背记手册
PDF
Python背记手册
python notes
PDF
python notes
python record_4
PDF
python record_4
Cheat Sheet
PDF
Cheat Sheet
DocScanner 18 May 2023 12-40 PM
PDF
DocScanner 18 May 2023 12-40 PM
Computer Science Practical Amit Bikram Mishra Class Xii Science A
PDF
Computer Science Practical Amit Bikram Mishra Class Xii Science A
AKU PPS Pyq 2019
PDF
AKU PPS Pyq 2019
Programs For Practical File
PDF
Programs For Practical File
Python Notes Handwritten
PDF
Python Notes Handwritten
Notesof C Language by Abhay Kumar Awasthi Till Recursion
PDF
Notesof C Language by Abhay Kumar Awasthi Till Recursion
Python Practical 6-11
PDF
Python Practical 6-11
pps unit4
PDF
pps unit4
My research
PDF
My research
Python Programs
PDF
Python Programs
Py Ass PDF
PDF
Py Ass PDF
Python Assignment Suvam Biswas
PDF
Python Assignment Suvam Biswas
Computer - Practical 2021
PDF
Computer - Practical 2021
Python Journal
PDF
Python Journal
Python question bank
PDF
Python question bank
Python ? Handwritten Notes
PDF
Python ? Handwritten Notes
Python Handwritten Notes 1701013067
PDF
Python Handwritten Notes 1701013067
Maths worksheet 2
PDF
Maths worksheet 2
class 12 cs practica
PDF
class 12 cs practica
MCS-011 Problem Solving and Programming
PDF
MCS-011 Problem Solving and Programming
Dec 13, Doc 1
PDF
Dec 13, Doc 1
10 To 40 (C S Practicals)
PDF
10 To 40 (C S Practicals)
Loop Questions
PDF
Loop Questions
Python Notes
PDF
Python Notes
Python QR
PDF
Python QR
Python 2.7 Quick Reference Sheet: ver 2.01 ʹ 110105 (sjd)
PDF
Python 2.7 Quick Reference Sheet: ver 2.01 ʹ 110105 (sjd)
171
PDF
171
Python Handwritten Notes - 1 To 2
PDF
Python Handwritten Notes - 1 To 2
Computer Science Basic programs
PDF
Computer Science Basic programs
Basic Handnote of CSE-101 Course
PDF
Basic Handnote of CSE-101 Course
Python Revision Tour 01 12th
PDF
Python Revision Tour 01 12th
Cs Notes
PDF
Cs Notes
Python Unit-1
PDF
Python Unit-1
PPS EXP. NO.2 and 1
PDF
PPS EXP. NO.2 and 1
Python Assignment 2
PDF
Python Assignment 2
python model practical..(set 4)
PDF
python model practical..(set 4)
Practice Makes Python (Reuven M. Lerner, PhD) (Z-Library)
PDF
Practice Makes Python (Reuven M. Lerner, PhD) (Z-Library)
Python Practical
PDF
Python Practical
Computer Programs Code
PDF
Computer Programs Code
fpl set A
PDF
fpl set A
C
PDF
C
CD Lab-File
PDF
CD Lab-File
CS Practical
PDF
CS Practical
Scan 24 Nov 23 13 05 34
PDF
Scan 24 Nov 23 13 05 34
Python 3.6 Quick Reference Sheet
PDF
Python 3.6 Quick Reference Sheet
Computer
PDF
Computer
Functions Notes
PDF
Functions Notes
18CS752-Python 4
PDF
18CS752-Python 4
Py QB
PDF
Py QB
python unit 1
PDF
python unit 1
c programming
PDF
c programming
Python Alok
PDF
Python Alok
1696123699200
PDF
1696123699200
Python Cheat Sheet PDF
PDF
Python Cheat Sheet PDF