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]

Unit 2: Data Types, Input/ Output [5 Hrs]

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

  1. W. J. Chun, “Core Python Programming”, 3rd Edition, Prentice Hall
  2. Allen Downey, “Think Python”, Green Tea Press.
  3. Kenneth A. Lambert, “Fundamentals of Python”, Cengage.
  4. Ashok Namdev Kamthane, Amit Ashok Kamthane, “Programming and Problem Solving with Python”, McGraw Hill Education

Old Questions

Practice Quiz