Programming Using Python Syllabus (DSC-A1-GE1a)
Programming Using Python Syllabus (DSC-A1-GE1a)
Course title & Credits Credit distribution of the course Eligibility Pre-requisite
Code Lecture Tutorial Practical/ criteria of the course
Practice (if any)
Programming Class XII Nil
using Python 4 3 0 1 pass
Course Objectives
This course is designed to introduce programming concepts using Python to students. The
course aims to develop structured as well as object-oriented programming skills using Python.
The course also aims to achieve competence amongst its students to develop correct and
efficient Python programs to solve problems spanning multiple disciplines.
Learning Outcomes
Syllabus
Unit 1
9
Unit 2
Creating Python Programs: Identifiers and keywords; literals, numbers, and strings; Operators
and expressions; Input and output statements; control structures (conditional statements, loop
control statements, break, continue and pass), Errors and exception handling.
Unit 3
User Defined Functions: Defining functions, passing arguments and returning values, default
arguments
Unit 4
Built-in data structures: Strings, Lists, Tuples, Sets, Dictionaries; their built-in functions,
operators and operations.
References
1. Kamthane, A. N., & Kamthane, A.A. Programming and Problem Solving with Python,
McGraw Hill Education. 2017.
Additional References
(i) Guttag, J. V. Introduction to computation and programming using Python. MIT Press. 2018
(ii) Downey, A. B. Think Python–How to think like a Computer Scientist 2nd Edition. O’Reilly
2015
1. Write a program to calculate total marks, percentage and grade of a student. Marks obtained
in each of three subjects are to be input by the user. Assign grades according to the
following criteria:
10
2. Write a program to print factors of a given number.
4. Write a program to print the following conversion table (use looping constructs):
5.0ft 60 inches
5.1ft 61.2inches
.
.
.
5.8ft 69.6inches
5.9ft 70.8inches
6.0ft 72inches
5. Write a program that takes a positive integer n and the produce n lines of output as shown:
**
***
****
(for n =4)
6. Write a menu driven program using user defined functions to print the area of rectangle,
square, circle and triangle by accepting suitable input from user.
8. Write a program to print the series and its sum: (use functions)
11
9. Write a program to perform the following operations on an input string
10. Write a program to create two lists: one of even numbers and another of odd numbers. The
program should demonstrate the various operations and methods on lists.
11. Write a program to create a dictionary where keys are numbers between 1 and 5 and the
values are the cubes of the keys.
12. Write a program to create a tuple t1 = (1,2,5,7,2,4). The program should perform the
following:
a. Print tuple in two lines, line 1 containing the first half of tuple and second line having
the second half.
Course title Credits Credit distribution of the course Eligibility Pre- requisite of
& Code Lecture Tutorial Practical/ criteria the course (if any)
Practice
Programming 4 3 0 1 Class XII NIL
using C++ pass
Course Objectives:
This course is designed to introduce programming concepts using C++ to students. The course
aims to develop structured as well as object-oriented programming skills using C++
12