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

Programming Using Python Syllabus (DSC-A1-GE1a)

Python ba syllabus du

Uploaded by

vivekshyam01
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

Programming Using Python Syllabus (DSC-A1-GE1a)

Python ba syllabus du

Uploaded by

vivekshyam01
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DSC-A1/GE1a: PROGRAMMING USING PYTHON

CREDIT DISTRIBUTION, ELIGIBILITY AND PRE-REQUISITES OF THE COURSE

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

On successful completion of this course, a student will be able to:

● Write simple programs using built-in data types of Python.


● Implement arrays and user defined functions in Python.
● Solve problems spanning multiple disciplines using suitable programming constructs in
Python.

Syllabus

Unit 1

Introduction to Python Programming: Problem solving strategies; Structure of a Python


program; Syntax and semantics; Python interpreter/shell, indentation; Executing simple
programs in Python.

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.

2. Balaguruswamy E., “Introduction to Computing and Problem Solving using Python”,2nd


Edition, McGraw Hill Education, 2018.

3. Taneja, S., Kumar, N. Python Programming- A modular Approach. Pearson Education


India, 2018.

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

Suggested Practical List

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:

Grade A : if Percentage >=80


Grade B : if Percentage >=60 and Percentage <80
Grade C : if Percentage >=40 and Percentage <60
Grade D : if Percentage <=40

10
2. Write a program to print factors of a given number.

3. Write a program to add N natural numbers and display their sum.

4. Write a program to print the following conversion table (use looping constructs):

Height(in Feet) Height(in inches)

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.

7. Write a function that calculates factorial of a number n.

8. Write a program to print the series and its sum: (use functions)

1/1! + 1/2! + 1/3! …….1/n!

11
9. Write a program to perform the following operations on an input string

a. Print length of the string

b. Find frequency of a character in the string

c. Print whether characters are in uppercase or lowercase

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.

b. Concatenate tuple t2 = (10,11) with t1.

DSC04/DSC01/GE1b: PROGRAMMING USING C++


CREDIT DISTRIBUTION, ELIGIBILITY AND PRE-REQUISITES OF THE COURSE

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

You might also like