GE8161 PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY L T P C
Last updated
Last updated
0 0 4 2
OBJECTIVES:
To write, test, and debug simple Python programs.
To implement Python programs with conditionals and loops.
Use functions for structuring Python programs.
Represent compound data using Python lists, tuples, dictionaries.
Read and write data from/to files in Python.
LIST OF PROGRAMS:
Compute the GCD of two numbers.
Find the square root of a number (Newton‘s method)
Exponentiation (power of a number)
Find the maximum of a list of numbers
Linear search and Binary search
Selection sort, Insertion sort
Merge sort
First n prime numbers
Programs that take command line arguments (word count)
Find the most frequent words in a text read from a file
Simulate elliptical orbits in Pygame
Simulate bouncing ball using Pygame
PLATFORM NEEDED
Python 3 interpreter for Windows/Linux
OUTCOMES:
Upon completion of the course, students will be able to:
Write, test, and debug simple Python programs.
Implement Python programs with conditionals and loops.
Develop Python programs step-wise by defining functions and calling them.
Use Python lists, tuples, dictionaries for representing compound data.
Read and write data from/to files in Python.
TOTAL: 60 PERIODS