127C11 python lab
127C11 python lab
Year: I Semester:I
Core-II: Python Programming Practical
127C11
(Common to B.Sc.-CS, CS with AI, Software Appl. & BCA)
Credits 5 Lecture Hours:5 per week
Learning Objectives: (for teachers: what they have to do in the class/lab/field)
Acquire programming skills in core Python.
Acquire Object-oriented programming skills in Python.
Develop the skill of designing graphical-user interfaces (GUI) in Python.
Develop the ability to write database applications in Python.
Acquire Python programming skills to move into specific branches
Course Outcomes: (for students: To know what they are going to learn)
CO1: To understand the problem solving approaches
CO2: To learn the basic programming constructs in Python
CO3: To practice various computing strategies for Python-based solutions to real world
problems
CO4: To use Python data structures - lists, tuples, dictionaries.
CO5: To do input/output with files in Python.
List of Programs
1. Program to convert the given temperature from Fahrenheit to Celsius and vice versa
depending upon user’s choice.
2. Write a Python program to construct the following pattern, using a nested loop
*
**
***
****
*****
****
***
**
*
3. Program to calculate total marks, percentage and grade of a student. Marks obtained in
each of the five subjects are to be input by user. Assign grades according to the
following criteria:
Grade A: Percentage >=80 Grade B: Percentage >=70 and 80
Grade C: Percentage >=60 and <70 Grade D: Percentage >=40 and <60
Grade E: Percentage < 40
4. Program, to find the area of rectangle, square, circle and triangle by accepting suitable
input parameters from user.
5. Write a Python script that prints prime numbers less than 20.
UNIVERSITY OF MADRAS
B.Sc. DEGREE PROGRAMME IN COMPUTER SCIENCE WITH
DATA SCIENCE
SYLLABUS WITH EFFECT FROM 2023-2024
Learning Resources:
Recommended Texts
1. Charles Dierbach, “Introduction to Computer Science using Python - A
computational Problem-solving Focus”, Wiley India Edition, 2015.
2. Wesley J. Chun, “Core Python Applications Programming”, 3rd Edition , Pearson
Education, 2016
Reference Books
1. Mark Lutz, “Learning Python Powerful Object Oriented Programming”, O’reilly
Media 2018, 5th Edition.
2. Timothy A. Budd, “Exploring Python”, Tata MCGraw Hill Education Private
Limited 2011, 1 st Edition.
3. John Zelle, “Python Programming: An Introduction to Computer Science”,
Second edition, Course Technology Cengage Learning Publications, 2013,
ISBN 978- 1590282410
4. Michel Dawson, “Python Programming for Absolute Beginers”, Third Edition,
Course Technology Cengage Learning Publications, 2013, ISBN 978-
1435455009