The Maharaja Sayajirao University of Baroda
Academic
Faculty of Science 2026-27
Year
Department of Statistics
Integrated [Link]. in Data Science
Year I DS1104CT: Introduction to Programming in Python Credits 4T
Semester I Year of Introduction: 2026 Maximum 100
Year of Syllabus Revision: - Marks
Mode of Lectures and Tutorials
Transaction
Course Outcomes
This course will enable students to
CO1 understand the basics of Python language, use of different editors
CO2 understand various basic data structures in Python
CO3 understand use control structures and loops in Python
CO4 understand use of built-in functions from different Python libraries and modules
CO5 develop user-defined functions and using them
CO6 develop custom modules in Python
CO7 read data from files and write the output to the file
CO8 understand the concept of Object oriented programming in Python
CO9 learn creating own class, concepts of inheritance and polymorphism
CO10 understand the concept of Scientific computing using Python
CO11 study the basics of SciPy, NumPy and matplotlib
Unit Topic/Unit Contact Weightage
No. Hours (%)
1 Introduction to computers, programming languages, compilers and interpreters, operating 15 25
systems.
Introduction to Python – Various ways of creating and running python programs, using python
interpreter, using Jupyter notebook/ Lab.
Python identifiers, Data types in Python, variables, operators and expressions. Working with
numbers and strings, Collection data types – sequence types: List, tupl; set, dict.
Python statements – Assignment, Control structures – Conditional branching: if,
match..case ; loops: for; break and continue in loops, use of else in loops, the
pass statement.
2 List comprehensions, Dict comprehensions; iterators, iterables and generators. 15 25
Library functions, user defined functions – defining a function, calling a function, default
arguments, positional and keyword arguments; documentation strings.
Packing and unpacking arguments, Local and recursive functions, Lambda functions.
Exception handling.
Input/ Output in Python, formatting output – formatted string literals, string format method,
manual formatting, old string formatting; reading and writing files.
3 Python Modules and packages – importing a module/ package in a Python program 15 25
Developing custom modules and packages, , executing modules as scripts, compiled python
files.
Writing executable python scripts, writing startup files for interactive python sessions.
A brief introduction to the software development process.
4 Overview of Python’s standard library – string handling, mathematics and numbers, Times and 15 25
Dates, File, Directory and Process handling.
Writing more readable code - Python coding style, PEP 8.
Debugging, testing, and Profiling Python code
Reference Books
1. Guido van Rossum (2020): An Introduction to Python, Shroff Publishers
2. Kennedy Behrman (2022): Foundational Python for Data Science, Addison-Wesley.
3. Mark Summerfield (2010):Programming in Python 3, 2E, Addison-Wesley.
4. [Link]