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)
7 views
python basic progrmms
GHJKL
Uploaded by
Tejashwi tejuu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save python basic progrmms For Later
Download
Save
Save python basic progrmms For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
7 views
python basic progrmms
GHJKL
Uploaded by
Tejashwi tejuu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save python basic progrmms For Later
Carousel Previous
Carousel Next
Save
Save python basic progrmms For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 6
Search
Fullscreen
I]. Puthon Proavam +o | aiven § a oes __ start 211 end = 75 _ ___ Print (“prime numbers between", end, “are:") fox Ci in vange ( start , end a ep>pe for jin yange (2,i 9: if(jyT=e=0)+ Prime number between tL and 45 ave : li, 13 19 14 23 29. Bl FF aq isa ci 67 ail 32 woqxarne to Print squave of atven umber: Code — __ num = int Cinput ("enter number: “ _Squave = nn _print ("Square js +", Square ) Output: enter number ° 10 Squave is 1 1003). Puthon proagyam +o pyint table of given number: codes _ N= int Cinpur C“entey the number to pyiat table fox. ")) for jin yange (I, )? _ pxlot Ci x n ) . Output: enrey number to print table for : 7 put jon pe (Linke pin). Nores cracls TELEGRAM, ced 4). Python Progyam tO _@dd_+wo numbers: a oe : - Sum= Numi + num 2 ~ - - print (The sum of {Oo} and {i} ts {ah ___ fovmar (num, num 2. sum) pt5: Python pxogyam +o pyint calande Code : Ss imposting calander module _Impoyt calander = YY, = 2022 a Year eee reece! [eee th displaying, ng_calandey fit tances 9 — = —,Outpur + — i Nov 20: - = Mon Tue Iwled “Thu Fri Sat L gz Si 4 3 g q 410 u 1S Ib We 23 24 30 Puthon pyoaxarn to _Swai Code: Jee | Oe _ aa Swapping of number _usin ng third vaviable temp = x fey Y= fem ipyint C' ae of x after Smapping : O' format (X) ») ____ print (‘value oF y_ after swaping : {> foymat “oe Output > Value of x after Swapping + Value. of Y Afrer Swapping : 5num +1) i fact = Factei =e print C"factovial is: >". fovmat fact )) Output: Factovial is ! 5040. program to Convert decimal to Othey Number _Sustern. Codes dec = 344 pint ("The decimal value of", de evint(bin (dec) , " “in binayu print ( Oct Cdec ) in Octal. Output: —————— The decirnal value of _Oblo1oilooe in binary Ooszo jn Dera Ox“ 1S@ in hexadecimal am _ tn print a *# n TUS = = Int (Input (“enter nurmbex of vows i") fox i_in range (wows al _ fox j in vange (i+ 1 plat _ pri en")thon pyogvam to find |.CM* Code: def compute. lem Cx, y_) _ if x > 4 = eater = = x a alles thon pyoayam to add two matyice. e Vode: for iin yange (en (XD)? | fox} in vange (lenty))? I - yesult LiJCI) =x Cills)+y Cis) th fox yin _yesult : | print Cy ): : _—paie seers) Lio, 12, 9) Lu, 13, 18) def s um (ayy): : tum =O _ ei Komen, Cyaan ny). fox iin ayy: APT LER Creceanan) sum = Sum ri ______vetuyn (sur a yy = C7 avy = 012,24 15) n= ten layy ) ans = —Sum(ayr) i of the ayvau is: —___©utpur: Sum of ARRAY TS 24
You might also like
Computational Discrete Mathematics With Python PDF
PDF
No ratings yet
Computational Discrete Mathematics With Python PDF
59 pages
? Python Programs?
PDF
No ratings yet
? Python Programs?
6 pages
A Program He Product Al: Produet o
PDF
No ratings yet
A Program He Product Al: Produet o
10 pages
279 Python Practicals 1to4
PDF
No ratings yet
279 Python Practicals 1to4
22 pages
Python Examples
PDF
100% (1)
Python Examples
16 pages
Programs 1
PDF
No ratings yet
Programs 1
15 pages
Python Program - Mca - 3 Sem
PDF
No ratings yet
Python Program - Mca - 3 Sem
13 pages
Py Ass PDF
PDF
No ratings yet
Py Ass PDF
33 pages
python notes
PDF
No ratings yet
python notes
25 pages
python record_4
PDF
No ratings yet
python record_4
29 pages
Python Assignment 8
PDF
No ratings yet
Python Assignment 8
26 pages
Python of data science Practical BE Sem-5
PDF
No ratings yet
Python of data science Practical BE Sem-5
64 pages
210490131035-PDS
PDF
No ratings yet
210490131035-PDS
54 pages
cs1.pdf
PDF
No ratings yet
cs1.pdf
15 pages
FINAL pythonLab assignment 4
PDF
No ratings yet
FINAL pythonLab assignment 4
7 pages
DSP LABs
PDF
No ratings yet
DSP LABs
6 pages
dspoutputs
PDF
No ratings yet
dspoutputs
13 pages
Practical File (Nimit)
PDF
No ratings yet
Practical File (Nimit)
18 pages
Day-1 Solutions
PDF
No ratings yet
Day-1 Solutions
10 pages
Python Assignment Suvam Biswas
PDF
No ratings yet
Python Assignment Suvam Biswas
16 pages
QWERT
PDF
No ratings yet
QWERT
40 pages
Programs For Practical File
PDF
No ratings yet
Programs For Practical File
12 pages
Python Loops Programs
PDF
No ratings yet
Python Loops Programs
10 pages
python program
PDF
No ratings yet
python program
28 pages
Python Practical File 2023-24 For MCA
PDF
No ratings yet
Python Practical File 2023-24 For MCA
24 pages
Record Programs Till Functions
PDF
No ratings yet
Record Programs Till Functions
53 pages
All Saints School, Agra: Practical File Computer Science (083) Session: 2020-21
PDF
No ratings yet
All Saints School, Agra: Practical File Computer Science (083) Session: 2020-21
20 pages
Python All Ex
PDF
No ratings yet
Python All Ex
2 pages
10303_Exp4
PDF
No ratings yet
10303_Exp4
10 pages
Python Lab Notes
PDF
No ratings yet
Python Lab Notes
26 pages
PYTHON Lab Manual
PDF
No ratings yet
PYTHON Lab Manual
35 pages
Week 10
PDF
No ratings yet
Week 10
15 pages
Python Worksheet For Practice
PDF
100% (1)
Python Worksheet For Practice
7 pages
Python Pr-Set3
PDF
No ratings yet
Python Pr-Set3
26 pages
Python Practicals (1)
PDF
No ratings yet
Python Practicals (1)
29 pages
AVANTHI
PDF
No ratings yet
AVANTHI
14 pages
Python Basic Programs
PDF
No ratings yet
Python Basic Programs
8 pages
Cs Practical
PDF
No ratings yet
Cs Practical
24 pages
Python Vishal
PDF
No ratings yet
Python Vishal
27 pages
Python 036-FINAL
PDF
No ratings yet
Python 036-FINAL
46 pages
Python Question Paper
PDF
No ratings yet
Python Question Paper
3 pages
Python For Data Science (Slideshare)
PDF
No ratings yet
Python For Data Science (Slideshare)
54 pages
DocScanner 18 May 2023 12-40 PM
PDF
No ratings yet
DocScanner 18 May 2023 12-40 PM
18 pages
Class11 Listofprograms
PDF
No ratings yet
Class11 Listofprograms
44 pages
1
PDF
No ratings yet
1
4 pages
140 Basic to Advances Python Programs
PDF
No ratings yet
140 Basic to Advances Python Programs
10 pages
Python Handwritten Notes - 1 To 2
PDF
No ratings yet
Python Handwritten Notes - 1 To 2
36 pages
Python Example
PDF
No ratings yet
Python Example
43 pages
Python Record
PDF
No ratings yet
Python Record
20 pages
PWP Practical No. 5
PDF
No ratings yet
PWP Practical No. 5
4 pages
Python Programs PDF
PDF
100% (1)
Python Programs PDF
14 pages
Iot Lab Manual
PDF
No ratings yet
Iot Lab Manual
18 pages
i Puc p+c+Cs Lab Manuals 2024-25
PDF
No ratings yet
i Puc p+c+Cs Lab Manuals 2024-25
99 pages
35 Python Programming Exercises and Solutions - Pythonista Planet
PDF
No ratings yet
35 Python Programming Exercises and Solutions - Pythonista Planet
45 pages
CamScanner 12-13-2024 13.44
PDF
No ratings yet
CamScanner 12-13-2024 13.44
25 pages
Practical File IX
PDF
No ratings yet
Practical File IX
20 pages
Python Practical File
PDF
No ratings yet
Python Practical File
21 pages
Blockchain technology_Unit-2
PDF
No ratings yet
Blockchain technology_Unit-2
19 pages
JNTUA AC Machines Lab - PPT R20
PDF
No ratings yet
JNTUA AC Machines Lab - PPT R20
53 pages
Blockchain Technology - Unit-1
PDF
No ratings yet
Blockchain Technology - Unit-1
28 pages
Manual Testing Document. - Online
PDF
No ratings yet
Manual Testing Document. - Online
23 pages
Unit-5-Iot Case Studies-Part-1
PDF
No ratings yet
Unit-5-Iot Case Studies-Part-1
8 pages
IOTA Unit Wise Objective Questions
PDF
No ratings yet
IOTA Unit Wise Objective Questions
18 pages
IOTA Syllabus
PDF
No ratings yet
IOTA Syllabus
1 page
UPDATED-DAA LessonPlan-III-II DS, AI&ML
PDF
No ratings yet
UPDATED-DAA LessonPlan-III-II DS, AI&ML
3 pages
Transition To SAP BW4HANA 20Q3 Ext
PDF
100% (1)
Transition To SAP BW4HANA 20Q3 Ext
220 pages