0% found this document useful (0 votes)
41 views

Python Programming Syllabus

Uploaded by

perikruthika
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)
41 views

Python Programming Syllabus

Uploaded by

perikruthika
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/ 4

PYTHON PROGRAMMING LTPC

3 0 03
OBJECTIVES:
⮚ To learn the fundamentals of Python
⮚ To learn to solve problems using Python conditionals and loops.
⮚ To define Python functions and use function calls to solve problems.
⮚ To use Python data structures - lists, tuples, dictionaries to represent complex data.
⮚ To do input/output with files in Python.
⮚ To use Python Modules and Packages

UNIT I FUNDAMENTALS OF PYTHON 8


Introduction to Python – Setting up Python environment -Working in python - Python
interpreter and interactive mode – Input / Output: input(), raw_input(), print() -Writing a
first program in Python – Keywords and Variables - Data types: Constants, Numbers - int,
float, complex, boolean, string, and list. Illustrative programs: exchange the values of two
variables, circulate the values of n variables, distance between two points.

UNIT II CONTROL FLOW, ITERATION 8


Boolean values – operators – types of operators, Precedence of operators – Conditions:
conditional (if), alternative (if-else), chained conditional (if-elif-else), nested conditions
(nested if); Iteration: while and for loop -state, while, for, break, continue, pass – nested
loops - Illustrative programs: Voter’s age validation, Marks range validation (0-100),
Pattern program using nested loop.

UNIT III FUNCTIONS 8


Function: function definition and function call – def keyword - self keyword - Fruitful
functions: return values, parameters, different types of arguments - local and global scope -
function composition - Recursion - Illustrative programs: square root, GCD, Factorial and
Fibonacci using recursion.

UNIT IV STRINGS, LISTS 8


Strings: String and Characters – indexing – String traversal - String slices, immutability,
string functions and methods - Lists: Creating list – Indexing – Negative indexing - list
operations, list slices, list methods, loop in list, mutability, aliasing, cloning lists -
Illustrative programs: simple sorting, sum an array of numbers, searching data in list.

UNIT V TUPLE, DICTIONARY & FILES 7


Tuple: Creating a Tuple –Tuple assignment, operations and methods – slicing in tuple -
tuple as return value – difference between list and tuple - Dictionaries: Syntax – Keys /
Values – accessing - operations and methods; Files – types of files - text files, modes in
files - reading and writing files. Illustrative programs: word count, copy file.
UNIT VI EXCEPTION HANDLING, MODULES AND PACKAGES 6
Exceptions in python: Errors in a python program, compile & run-time errors - logical
error – exceptions - exception handling - types of exceptions - the except block – user
defined exceptions - format operator - command line arguments, Modules, Packages -
Illustrative programs.

COURSE OUTCOMES:
Upon completion of the course, students will be able to
CO1: Understand the fundamentals of Python
CO2: Develop and execute simple Python programs.
CO3: Write python programs using conditionals and loops.
CO4: Decompose a Python program into functions.
CO5: Represent compound data using Python lists, tuples, dictionaries etc
CO6: Read and write data from/to files in Python programs.

TEXT BOOKS:
1. Allen B. Downey, “Think Python : How to Think like a Computer Scientist”, 2nd Edition,
O’Reilly Publishers, 2016.
2. Paul Deitel and Harvey Deitel, “Python for Programmers”, Pearson Education, 1st
Edition, 2021

REFERENCES:
1.John V Guttag, Introduction to Computation and Programming Using Python: With
Applications to Computational Modeling and Understanding Data‘‘, Third Edition, MIT Press
2021
2. Eric Matthes, “Python Crash Course, A Hands - on Project Based Introduction to
Programming”, 2nd Edition, No Starch Press, 2019.
3. Martin C. Brown, “Python: The Complete Reference”, 4th Edition, Mc-Graw Hill,2018.
4. https://www.python.org
ADVANCED PYTHON PROGRAMMING LTPC
3 0 03
OBJECTIVES:
● To learn how to design object‐oriented programs with Python classes.
● To learn about regular expression and threads in Python.
● To implement database connection through Python
● To design GUI based programs in Python.
● To know about use of regular expression

UNIT I OOPS IN PYTHON 8


Features of Object Oriented Programming system (OOPs) - classes and objects,
encapsulation, abstraction, inheritance, polymorphism, constructors and destructors
Classes and objects: Creating a class, the self-variable, types of variables, namespaces,
types of methods, instance methods, class methods, static methods, passing members of
one class to another class.

UNIT II REGULAR EXPRESSIONS AND THREADS 8


What is a regular expression? Sequence characters in regular expressions - quantifiers in
regular expressions, special characters in regular expressions, using regular expression on
file. Threads in python: Difference between process and thread - types of threads -
benefits of threads - creating threads.

UNIT III DATABASE CONNECTION 8


Database in python: Using MySQL with python – creating database tables through python
- inserting records into a table - retrieving records from a table – updating data - deleting
records from a table – disconnecting database - Exception handling in databases.

UNIT IV GUI IN PYTHON 8


Graphical user interface: Create First GUI Application using Python Tkinter - Tkinter
Programming – Tkinter widgets – Attributes - Creating a GUI in python - Widget classes -
Working with Fonts and Colors - working with Frames - Layout manager -Event handling-
Geometry Management.

UNIT V GRAPHICS USING PYTHON 7


Turtle programming – basic drawing – turtle motion : forward( ) , backward( ), left ( ),
right( ), goto( ), dot( ), circle( ), speed( ) – turtle state - Setting and measurement – Pen
control – Color control – filling – visibility and appearance – using events – window
control – animation control.
UNIT VI FRAMEWORKS AND APIs IN PYTHON 6
Python Framework Usage – Introduction about familiar frameworks – Django, Flask,
Pyramid, Dash – API - API Requests – Libraries for Making API Requests - Integration
of APIs with Query Parameters.

COURSE OUTCOMES:
Upon completion of the course, students will be able to
CO1: ability to implement OOP concepts in Python including Inheritance and Polymorphism
CO2: Ability to implement regular expression and concept of threads for developing
efficient program
CO3: Ability to working with databases
CO4 : Ability to implement exception handling in Python applications for error handling.
CO5: Knowledge of, designing GUI in Python and implement networking in Python

TEXT BOOKS:
1. Paul Gries , Jennifer Campbell, Jason Montojo, Practical Programming: An Introduction
to Computer Science Using Python 3, Pragmatic Bookshelf, 3rd Edition, 2018
2. Programming through Python, M. T Savaliya, R. K. Maurya, G M Magar, Revised
Edition, Sybgen Learning India, 2020

REFERENCES:
1. Advanced Python Programming, Dr. Gabriele Lanaro, Quan Nguyen, Sakis Kasampalis,
Packet Publishing, 2019
2. Programming in Python 3, Mark Summerfield, Pearson Education, 2nd Ed, 2018
3. Python: The Complete Reference, Martin C. Brown, McGraw Hill, 2018
4. Beginning Python: From Novice to Professional, Magnus Lie Hetland, Apress, 2017
5. Programming in Python 3, Mark Summerfield, Pearson Education, 2nd Ed, 2018

You might also like