Introduction to Programming (BT101CO)
Course Objectives
The main objective of this course is to familiarize students with the fundamental concepts of Python scripting language so as to enable them to develop small applications using Python programming language.
Course Contents
Unit 1: Introduction to Python [4 Hrs]
- 1.1 What is Python?
- 1.2 History of Python
- 1.3 Downloading and Installing Python
- 1.4 Running Python
- 1.5 Python Documentation
- 1.6 Comparing Python
Unit 2: Data Types, Input/ Output [5 Hrs]
- 2.1 Python Character Set
- 2.2 Python Core Data Types
- 2.3 Tokens
- 2.4 Variables
- 2.5 Assignment of values to variables
- 2.6 The input() function
- 2.7 print() function
- 2.8 The eval() function
Unit 3: Operators [3 Hrs]
Unit 4: Control Statements [7 Hrs]
Unit 5: Functions and Lists [9 Hrs]
- 5.1 Syntax and basics of a function
- 5.2 Use of a function
- 5.3 Parameters and Arguments in a function
- 5.4 Local and global scope of a variable
- 5.5 Recursive functions
- 5.6 The lambda function
- 5.7 Creating Lists
- 5.8 Accessing the elements of a List
- 5.9 List Slicing
- 5.10 Python in-built functions for Lists
Unit 6: Tuples, Sets and Dictionaries [9 Hrs]
- 6.1 Creating Tuples
- 6.2 tuple() function, In-built functions for tuples
- 6.3 Indexing and Slicing
- 6.4 Sort tuples, Traverse Tuples from a list
- 6.5 Zip() and Inverse Zip(*) functions
- 6.6 Sets, Python Set Class, Set Operations
- 6.7 Dictionaries: Creating, Comparing, Methods, Traversing, Nested Dictionaries
Unit 7: Files [8 Hrs]
- 7.1 Opening a file, Writing Text, Closing files
- 7.2 Writing numbers to a file
- 7.3 Reading numbers from a file
- 7.4 appending data
- 7.5 seek() function
Examination Scheme
| Teaching Schedule | Examination Scheme | Total | |||||
|---|---|---|---|---|---|---|---|
| TH | TU | PR | Internal | Final | |||
| TH | PR | TH | PR | ||||
| 3 | 1 | 2 | 20 | 20 | 60 | - | 100 |
Laboratory Work
There shall be laboratory exercises covering all units mentioned in the syllabus.
Reference Books
- W. J. Chun, “Core Python Programming”, 3rd Edition, Prentice Hall
- Allen Downey, “Think Python”, Green Tea Press.
- Kenneth A. Lambert, “Fundamentals of Python”, Cengage.
- Ashok Namdev Kamthane, Amit Ashok Kamthane, “Programming and Problem Solving with Python”, McGraw Hill Education