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

Python Syllabus (Sem III)

The document outlines the course structure for 'Python Programming for Computing' (TCS-341) in the Computer Science and Engineering department, detailing contact hours, examination duration, and course outcomes. It includes specific learning objectives related to structured programming, algorithms, data structures, file handling, regular expressions, and object-oriented programming. Additionally, it lists suggested textbooks and evaluation methods for the course.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Python Syllabus (Sem III)

The document outlines the course structure for 'Python Programming for Computing' (TCS-341) in the Computer Science and Engineering department, detailing contact hours, examination duration, and course outcomes. It includes specific learning objectives related to structured programming, algorithms, data structures, file handling, regular expressions, and object-oriented programming. Additionally, it lists suggested textbooks and evaluation methods for the course.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SEMESTER III

Name of Department: - Computer Science and Engineering


Python Programming for
1. Subject Code: TCS- 341 Course Title: Computing

2. Contact Hours: L: T: 0 P: 0

3. Examination Duration (Hrs): Theory 3 Practical 0


4. Relative Weight: CIE 25 MSE 25 SEE 50

5. Credits:

6. Semester: 3rd

7. Category of Course: DE

8. Pre-requisite: TCS 101, TCS 201

Course After completion of the course the students will be able to:
Outcome**: CO1: Describe the principles of structured programming and be able to describe, design,
implement, and test structured programs using currently accepted methodology.

CO2: Explain what an algorithm is and its importance in computer programming.


CO3: Recognize and construct common programming idioms: variables, loop, branch,
subroutine, and input/output.
CO4: Define and demonstrate the use of the built-in data structures 'list' and 'dictionary'.
CO5: Apply idioms to common problems such as text manipulation, web page building,
and working with large sets of numbers.
CO6: Design and implement a program to solve a real-world problem using the language
idioms, data structures, and standard library.

** Describe the specific knowledge, skills or competencies the students are expected to acquire
or demonstrate.

Details of the Course:


Sl. Contact
Contents
No. Hours
Unit 1:
Introduction: Introduction to Python: Importance of Python, Installing and working
with Python in Windows, Linux and Mac, Using Python as calculator, Comments, how
1 to define main function in Python.
The concept of data types - Variables, Arithmetic Operators and Expressions
9
String manipulations - Subscript Operator, Indexing, slicing a string, Converting
strings to numbers and vice versa, split function.
Control flow - if statements, for and while loops, nested loops, Short-
circuit (lazy evaluation), range () function, break and continue statements, pass
statements
Unit 2:
Data Structures:
Lists - Basic list operations, Replacing, inserting, removing an element; Searching and
sorting a list, Methods of list objects, using lists as Stacks and Queues, List, and nested
2 9
list Comprehensions.
Tuple, Sets, Difference between list and tuple
Dictionary - adding and removing keys, accessing, and replacing values, traversing
dictionaries
Unit 3
File and Exception Handling in Python
Reading config files in python, Writing log files in python, Understanding read
functions, read (), readline() and readlines(), Understanding write functions, write()
3 and writelines(), Manipulating file pointer using seek, Programming using file 11
operations

Exception Handling - Exceptions, why use exceptions, raising an exception, try and
except, try, except and else clause; try and finally
Unit 4:
Regular Expressions and Python Packages
Regular Expressions - re module, searching a string (match and search), Finding a
4 string (findall), Break string into substrings (split), Replace part of a string (sub) 9

Python packages: Simple programs using the built-in functions of packages matplotlib,
NumPy, Pandas
Unit 5:
Python Functions and OOP Concepts
Python functions and modules - OS and SYS modules, defining python functions,
calling a function, function arguments, Lambda, and map function, Importing python
5 module. 10
Classes and OOP - Class definition syntax, objects, class, and instance
variables, Inheritance and multiple inheritance, Polymorphism, Overloading,
Overriding, Data Hiding
Total 48

Suggested Books:
SL. Name of Authors/Books/Publishers Edition Year of
No. Publication
/ Reprint
Textbooks
1. Kenneth A. Lambert, “The Fundamentals of Python: First 1st 2011
Programs”, Cengage Learning.,
2. Think Python: How to think like a Computer Scientist 2nd 2015

3. 1st 2017
Python Programming using Problem Solving Approach

12. Mode of Evaluation Test / Quiz / Assignment / Mid Term Exam / End Term Exam

You might also like