SEMESTER -II
Programme BTech. AI and ML Programme Code BTIA
Course Code BTIA1221 Number of 5
Hours/Week
Semester II Max. Marks 100
Year II Credits 4
Course
Course Title PYTHON PROGRAMMING L T P
3 0 2
COURSE OBJECTIVES:
The main learning objective of this course is to prepare the students for:
To Understand the fundamentals of the Python programming language and its
historical development
To Master Python basics, including data types, operators, tuples, dictionaries,
and string ma- nipulation.
To demonstrate object oriented concept in python
To familiarize with machine learning tools in python
UNIT TOPICS HOURS
Introduction to python programming
Introduction to python ; setting up python programming
I environment; variables; strings and its operations; special 8
characters; striping whitespace; numbers; comments; list and its
operations; indexing; looping through lists; indentation; range
function; slicing a list; copying list; looping through slice;
Python datatypes
Tuples and its operations; relational operators; conditional
II statements – if, if-else, if-elif-else; multiple conditional blocks; 8
dictionaries; key-value pairs – adding, modifying, removing;
looping through dictionary; list of dictionaries; dictionary in a
dictionary; user input function; type casting;
Loop and function
While loop; break and continue; functions; arguments; passing
arguments – positional arguments, keyword arguments, default
III values; optional arguments; returning from function; passing 8
arbitrary number of arguments; storing functions in modules;
import specific function or module;
OOPs in python
Classes; __init__() method; instance of a class; accessing
IV attributes; calling methods; creating multiple instances; 8
inheritance – parent class, child class; importing classes; files –
reading a file, writing to a file, appending to a file; exceptions –
try-except block, else block;
Python machine learning tools
V Python tools for machine learning; python modules – numpy, 8
pandas, matplotlib, scipy; python based machine learning
libraries – pytorch, tensorflow; virtual environment; machine
learning application using python tools;
COURSE OUTCOMES:
On successful completion of this course, the student will be able to
CO1 Comprehend the holistic view of programming language design and behavior
:
CO2 : Understand the programming concepts in abstract and paradigm level
CO3 : Structure python programs for solving problems
CO4 : Develop python programs using OOP concept
CO5 : Execute ML project using python tools
Text Books:
1. Eric Matthes. Python Crash Course, 2nd Edition: A Hands-On, Project-Based Intro- duction to
Programming. No Starch Press, Inc., 2019.
Reference Books:
1. Al Sweigart. AutomAte the Boring Stuff with Python. William Pollock, 2015.