Syllabus - PROBLEM SOLVING USING PYTHON PROGRAMMING (I Year I Sem)
Syllabus - PROBLEM SOLVING USING PYTHON PROGRAMMING (I Year I Sem)
Hours/Week Credits
Year Semester
L T P/D
I I 3 0 6 6
Pre-requisite
COURSE OUTCOMES:
At the end of the course the students will be able to
UNIT I (9 hours)
Introduction: Introduction to Computer Science; Computer Algorithms; Computer Hardware;
Computer Software; The process of Computational Problem Solving; Introduction to Python
programming language; Data and Expressions: Literals; Variables and Identifiers; Operators;
Expressions and Data Types;
UNIT IV (6 hours)
Graphics Programming: Graphics Programming, Using Graphical Objects, Interactive
Graphics Graphics Objects, Entry Objects, Displaying Images, Generating Colours.
UNIT V (6 hours)
Object-Oriented Programming: Introduction to Object Oriented Programming;
Encapsulation; Inheritance; Polymorphism.
TEXT BOOKS
1. C. Dierbach, Introduction to Computer Science Using PYTHON: A Computational
Problem-Solving Focus (1st ed.), Wiley, 2015. ISBN 978-0470555156.
2. Yashavant Kanetkar, Let Us Python (1st ed.), BPB Publishers, 2019. ISBN 978-
9388511568.
REFERENCE BOOKS
1. Allen B. Downey, Think Python: How to Think Like a Computer Scientist (2nd ed.),
O’Reilly, 2015. ISBN 978-9352134755.
2. Martin C. Brown, Python: The Complete Reference (1st ed.), McGraw-Hill, 2001.
ISBN 978-9387572942
Experiments
9. Write a python program to print Sum of individual digits between 100 to 1000 using
while Loop
10. Write a python program to check whether the given number is Armstrong or not us-
ing while Loop
11. Write a python program to check whether the given number is Palindrome or not us-
ing while Loop
12. Write a python program to print reverse of a given number using while Loop
14. write a python program to print Armstrong Numbers between range using for Loop
15. Write a python program to print a Transpose of a Matrix
22. Write a python program to read list of names from the user, and print the names
which are starting with ‘a’.
Example : names =[‘raju’,’anil’,’mahesh’,’ananya’,’arjun’,’ramesh’] (read the list dy-
namically) Output: [anil, ananya, arjun]'''
23. Write a program to check if a number is present in the list or not. If the number is
present, print the position of the number. Print an appropriate message if the number
is not present in the list.
24. Write a python program to read the list of elements using list. And print the max, min,
avg, sort ascending or descending order based on user choice.
Expected Results :
Enter how many elements you enter: 5
Enter Elements: 1 7 4 8 3
Press 1 for Min element
Press 2 for max elements
Press 3 for avg of elements
Press 4 for sort in ascending
Press 5 for sort in descending
Press 6 for Exit
Select your choice from the following: 4
[1, 3, 4, 7, 8]
25. Write menu driven program read two sets s1 and s2 dymanically
press 1 union
press 2 intersection
press 3 difference
press 4 symmetric difference
press 5 exit
26. write a program to enter names of employees and their salaries as input and store
them in a dictionary. Here n is to input by the user.
27. Write a program to count the number of times a character appears in a given string
Example: Hello : H:1 e:1 l:2 o:1
28. Write a program to convert a number entered by the user into its corresponding num-
ber in words. For example if the input is 876 then the output should be “Eight Seven
Six”
29. Write a python program to print number of lines, number of words and number of
characters from file.