Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
173 views

20cs1201 - Python Programming

This document outlines a course on Python programming that introduces students to the fundamentals of the Python language. The course covers Python syntax and constructs like data types, control flow, functions, strings, lists, dictionaries, tuples, sets, files and regular expressions over six units. Students will learn to develop simple programs using these features and apply object-oriented programming concepts. Evaluation includes sessional and university exams worth 40% and 60% respectively.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views

20cs1201 - Python Programming

This document outlines a course on Python programming that introduces students to the fundamentals of the Python language. The course covers Python syntax and constructs like data types, control flow, functions, strings, lists, dictionaries, tuples, sets, files and regular expressions over six units. Students will learn to develop simple programs using these features and apply object-oriented programming concepts. Evaluation includes sessional and university exams worth 40% and 60% respectively.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

20CS1201 - PYTHON PROGRAMMING

(Common to CSE, IT, AI&DS, ECE & EEE Branches)


Course
Professional Core Credits: 3
Category:
Course Type: Theory Lecture - Tutorial - Practical: 3-0-0
Sessional Evaluation: 40
Basic mathematical knowledge to solve
Prerequisite: Univ. Exam Evaluation: 60
problems and programming.
Total Marks: 100
 To learn the fundamentals of Python constructs.
 To develop various simple programs using Python.
Objectives
 To define Python functions, exceptions and various other features.
 To explore features of object-oriented concepts.

Upon successful completion of this course students will be able to:


CO1 Learn the basic building blocks of Python.
CO2 Understand the flow of execution, exception handling mechanism and functions
for application development.
CO3 Study Strings, Lists and their applications.
Course
Outcomes CO4 Acquire knowledge in the concepts of Dictionaries, Tuples, and Sets.
CO5 Comprehend the rules to construct regular expressions, and apply them to text to
search for patterns and make changes.
CO6 Understand Object-oriented programming paradigm in controlling the access of
data and reducing the duplication of code by employing code reusability
techniques.
Course UNIT - I
Content
Why Python: Thrust areas of Python, Open Source Software.

Python Basics: Identifiers, Keyword, Statements and Expressions, variables, Operators,


Precedence and Associativity, Data Types, Indentation, Comments, Reading Input and
Writing Output, Type Conversions, type () function and “is” operator, Dynamic and
Strongly Typed Language

UNIT - II
Control Flow Statements: if and nested if, for, while Continue and Break statements,
Catching Exceptions.

Functions: Built-in Functions, Commonly Used Modules, Function Definition and


Calling the function, The return statement and void function, scope and lifetime of
variables, Default Parameters, Keyword Arguments, Variable number of arguments with
*args and **kwargs, command line arguments

UNIT - III
Strings: Creating and Storing Strings, Basic String Operations, Access characters by
Index, Slicing and Joining of Strings, String Methods and Formatting Strings.

1
Lists: Creating Lists, List operations, indexing and Slicing, Built-in Functions, List
Methods, del() vs pop()

UNIT - IV
Dictionaries: Creation, Accessing and modifying key-value pairs, Built-in functions
used on dictionaries, Dictionary methods, del statement.

Tuples and Sets: Creation of Tuples, Basic Tuple Operations, Indexing and Slicing in
Tuples, Built-in functions, Relationship among Tuples, Lists and Dictionaries, Tuple
Methods, aggregation with zip(), Sets, Set Methods and Frozen sets.

UNIT - V
Files: Types, Creating, Reading Text data and methods used for it, Manipulating Binary
and CSV files, pickling (serialization of objects), os and os.path modules.

Regular Expression Operations: Using Special Characters, Regular Expression


Methods, Named Groups in Python Regular Expression and Regular Expression with
glob Module.

UNIT - VI
Object-Oriented Programming: Classes and Objects and Creating them, The
Constructor Method, Classes with Multiple Objects, Class Attributes versus Data
Attributes, Encapsulation, Inheritance, Polymorphism.

Text Books:
1. Gowrishankar. S, Veena.A, “Introduction to Python Programming”, CRC Press,
Taylor and Francis group,2019.

Text Books Reference Books:


and 1. Brian Heinold, A Practical Introduction to Python Programming.
References
2. April Speigh, Bite-Size Python: An Introduction to Python Programming.
Kenneth A. Lambert, Fundamentals of python - Data structures.
3. Mark Summerfield, Programming in python 3.
4. Yaswanth Kanetkar, Aditya Kanetkar, Let Us Python, BPB Publications, 2020

1. https://nptel.ac.in/courses
E-Resources 2. https://freevideolectures.com/university/iitm
3. https://wiki.python.org/moin/PythonBooks

You might also like