SCHOOL OF COMPUTATIONAL SCIENCE 2023-2024
BACHELOR OF BUSINESS ADMINISTRATION
PRP101: Programming in Python
Credits: 3
LTP 300
Course Description: The course aims to equip the students with programming paradigms brought in by
Python with a focus on File Handling. The course includes basic programming constructs in python.
Course Outcomes (CO):
Upon successful completion of the course, the students should be able to:
CO1: Explain environment, data types, operators used in Python.
CO2: Interpret Object oriented programming in Python.
CO3: Design user defined functions, modules in Python.
CO4: Implement file handling in Python.
Course Content
UNIT I
Introduction to Python Programming Language: History and Origin of Python Language, Features of
Python, Limitations, Major Applications of Python, Installing Python, Setting up Path and Environment
Variables, Running Python, First Python Program, Python differences from other languages.
Keywords, Literals, Variables and Identifiers, Strings, Python Statement, Indentation, Documentation,
Multiple Assignment, Understanding Data Type, Data Type Conversion, Python Input and Output
Functions.
UNIT II
Operators and Expressions: Arithmetic Operators, Assignment Operators, relational and Logical
Operators, Bitwise Operators, Ternary operator, Increment or Decrement operator, Membership
Operators, Identity Operators, Expressions and order of evaluations.
Control Structures: Decision making statements, Python loops, Python control statements.
UNIT III
Array: Array, array representation, basic operations performed on array.
Functions & Modules: Numbers, Strings, Lists, Tuples, Dictionary, Date & Time, Defining Functions,
Exit function, default arguments. Module, creating modules, import statement, Path Searching of a
Module, Module Reloading, Standard Modules.
SCHOOL OF COMPUTATIONAL SCIENCE 2023-2024
BACHELOR OF BUSINESS ADMINISTRATION
UNIT IV
Files: Opening Files, Using Text Files, Reading files, Writing files, Understanding read functions,
read(), readline() and readlines(), Understanding write functions, write() and writelines(),
Manipulating file pointer using seek.
Recommended Books / Suggested Readings:
1. Python, The complete Reference, Martin C. Brown, Mc Graw Hill Education.
2. Python in a Nutshell, A. Martelli, A. Ravenscroft, S. Holden, OREILLY.
3. Python Programming: A Modern Approach, Vamsi Kurama, Pearson.
4. Core Python Programming, R. Nageswara Rao, 2nd Edition, Dreamtech.
Course Assessment Pattern:
Criteria Description Maximum Marks
Internal Assessment Mid Semester Exam (MSE) 20 Marks
(Summative)
Assignment 5 Marks
MOOC/LinkedIn/Test 5 Marks
Presentation/Quiz 5 Marks
Attendance 5 Marks
End Term Exam (Summative) End Term Examination (ESE) 60 Marks
Total 100 Marks
Attendance (Formative) A minimum of 75% Attendance is required to be maintained by a
student to be qualified for taking up the End Semester examination.
The allowance of 25% includes all types of leaves including
medical leaves.
SCHOOL OF COMPUTATIONAL SCIENCE 2023-2024
BACHELOR OF BUSINESS ADMINISTRATION
: Programming in Python Lab
Credits: 1
LTP 002
Course Description: The course aims to equip the students to familiarize with basics of Python
programming.
Course Outcomes (CO):
Upon successful completion of the course, the students should be able to:
CO1: Explain environment, data types, operators used in Python.
CO2: Implement different data structures using Python.
CO3: Design user defined functions, modules in Python.
CO4: Implement file handling in Python.
Lab Exercises:
1. Write a program to compute GCD of two numbers.
2. Write a program to find factorial of number.
3. Write a program to find the given year is leap or not.
4. Write a program to display current date and time.
5. Write a program which accepts the radius of circle from the user and calculate the area.
6. Write a program to swap two variables.
7. Write a program to check prime number.
8. Write a program to check whether string is palindrome.
9. Write a program to generate Fibonacci series.
10. Programs based on decision making statements.
11. Programs based on looping statements.
12. Programs based on array.
13. Write a program to find the duplicate elements in List.
14. Write a program to sorting the List.
15. Maintain book record as per their serial numbers in library using dictionary.
16. Write a program to concatenate two dictionaries into one.
17. Programs based on functions.
18. Write a program to create a module of factorial in Python.
19. Write a Python program to read an entire text file.
20. Construct a Python program to write and append text to a file and display the text.
Lab Assessment Evaluation Pattern:
Criteria Description Maximum Marks
Internal Assessment Lab Assessment/Viva (Five 15 Marks
SCHOOL OF COMPUTATIONAL SCIENCE 2023-2024
BACHELOR OF BUSINESS ADMINISTRATION
(Summative) times a semester):
Based on following criteria:
Problem solving (Based on
difficulty level, one or more
questions may be given)
Flowchart / Algorithm /
Structured description of
problem to explain how the
problem can be solved / Interface
Design
Attendance 5 Marks
Practical File 10 marks
External Assessment External Viva 20 Marks
(Summative)
Total 50 Marks
Attendance (Formative) A minimum of 75% Attendance is required to be maintained by a
student to be qualified for taking up the End Semester examination.
The allowance of 25% includes all types of leaves including medical
leaves.