Syllabus Python
Syllabus Python
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 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.
MOOC/LinkedIn/Test 5 Marks
Presentation/Quiz 5 Marks
Attendance 5 Marks
Course Description: The course aims to equip the students to familiarize with basics of Python
programming.
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.
Attendance 5 Marks
Total 50 Marks