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

Python

This document is a program file submitted by Satyam Kamboj to their professor Dr. Chavvi Rana at the University Institute of Engineering & Technology, MDU, Rohtak. It contains 13 Python programs, including programs to compute GCD, find square roots, exponentiation, sorting algorithms, prime numbers, matrix multiplication, word counts, 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 PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views24 pages

Python

This document is a program file submitted by Satyam Kamboj to their professor Dr. Chavvi Rana at the University Institute of Engineering & Technology, MDU, Rohtak. It contains 13 Python programs, including programs to compute GCD, find square roots, exponentiation, sorting algorithms, prime numbers, matrix multiplication, word counts, 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 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 Satyam Kamboj
5079519
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