0% found this document useful (0 votes)
15 views24 pages

Python

This document is a Python programming lab submission from a student named Rahul Bangwal in their 3rd semester at the University Institute of Engineering & Technology, MDU, Rohtak. It contains 13 Python programs, including programs to compute GCD, find square roots, exponentiation, find maximum/minimum of lists, sorting algorithms, prime numbers, matrix multiplication, word counting, and simulations of elliptical orbits and bouncing balls using Pygame.

Uploaded by

reetakamboj278
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views24 pages

Python

This document is a Python programming lab submission from a student named Rahul Bangwal in their 3rd semester at the University Institute of Engineering & Technology, MDU, Rohtak. It contains 13 Python programs, including programs to compute GCD, find square roots, exponentiation, find maximum/minimum of lists, sorting algorithms, prime numbers, matrix multiplication, word counting, and simulations of elliptical orbits and bouncing balls using Pygame.

Uploaded by

reetakamboj278
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 24

UNIVERSITY INSTITUTE OF ENGINEERING

&TECHNOLOGY, MDU(ROHTAK)

PYTHON PROGRAMMING LAB

LC-CSE-215G

PROGRAM FILE
SEMESTER –
3rd

Submitted to :- Submitted by :-
Dr. Chavvi Rana Rahul Bangwal
2211042
B.Tech. AIML
INDEX
Sr. Program Page Sign
No.

1 Compute the GCD of two 3-4


numbers
Find the square root of a number
2 (Newton‘s method) 4-5

3 Exponentiation (power of a 5
number)

4 Find the maximum of a list of 6-7


numbers

5 Linear search and Binary search 7-11

6 Selection sort, Insertion sort 11-14

7 Merge sort 14-16

8 First n prime numbers 16-18

9 Multiply matrices 18-19


Programs that take command line
10 arguments (word count) 20
Find the most frequent words in a
11 text read from a file 20-21

12 Simulate elliptical orbits in 21-22


Pygame

13 Simulate bouncing ball using 22-24


Pygame

You might also like