The document outlines the curriculum for a Python Programming course as part of a B.Sc. in Computer Science, detailing course objectives, outcomes, and the topics covered across five units. It includes practical lab exercises aimed at enhancing students' programming skills and problem-solving abilities using Python. Additionally, it lists textbooks, reference books, and web resources for further learning.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
13 views
python syllabus (2) (1)
The document outlines the curriculum for a Python Programming course as part of a B.Sc. in Computer Science, detailing course objectives, outcomes, and the topics covered across five units. It includes practical lab exercises aimed at enhancing students' programming skills and problem-solving abilities using Python. Additionally, it lists textbooks, reference books, and web resources for further learning.
B.Sc. Computer Science UCS II U23CSC21 4 4 Learning Objective To familiarize the students with the fundamental syntax, data types, variables and LO1 operators in Python. To understand the concept to write programs in solving various computational problems, LO2 utilizing loops and conditional statements. Encourage students to think algorithmically and develop problem-solving skills through LO3 exercises and projects using Functions, Modules and Strings. To understand on how to work with lists, Tuples and Dictionaries and utilize their methods LO4 effectively. LO5 To Introduce more advanced Python concepts such as file handling and Error handling. Programme Course Outcomes Outcome CO On completion of this course, students will Demonstrate a solid understanding of Python syntax, data types, variables, PO1, PO3, CO1 PO4, PO6 and basic operations. Utilize decision control structures and looping control to solve computational PO1, PO3, CO2 problems efficiently. PO4, PO6 Develop algorithmic thinking and problem-solving skills, utilizing functions, PO1, PO2, CO3 PO3, PO4, modules, and packages to modularize and organize their code effectively. Gain proficiency in working with lists, tuples, and dictionaries, understanding PO3, PO4, CO4 their properties, methods, and appropriate use cases. PO5, PO6 Equip with the knowledge and skills to handle file input/output operations, PO1, PO2, CO5 handling, and raising errors and exceptions effectively. PO3, PO6 Mapping with Programme Outcomes: CO/PSO PSO 1 PSO 2 PSO 3 PSO 4 CO 1 3 2 2 2 CO 2 3 3 3 2 CO 3 3 3 3 2 CO 4 3 3 3 2 CO 5 3 3 3 3 Weightage of course contributed to each PSO 15 14 14 11 S-Strong-3 M-Medium-2 L-Low-1 No. of UNIT Contents Hours Basics of Python Programming: History of Python-Features of Python – Literal – Constants - Variables and Identifiers – Data Types and Identifiers - Input I Statements - Output Statements - Comments - Reserved Words – Indentation - 11 Operators and Expressions - Other Data Types - Type conversions. Control Statements: Introduction to Decision Control Statements - Selection / Conditional Branching statements: if, if-else, nested if Statements - if-elif-else II statements. Iterative Statements: while loop, for loop, Selecting an Appropriate loop and nested loops. Jump Statements: break, continue and pass statements - 12 The else Statement used with Loops. Functions: Function Definition – Function Call – Variable Scope and its Lifetime-Return Statement. Fruitful Functions: The return statement - Parameters: Required Arguments, Keyword Arguments, Default Arguments and Variable Length Arguments - Recursive Functions. Modules: The from… III import statement – Name of Module – Making Your Own Modules – dir() 13 function - The Python module – Modules and Namespace. Python Strings: Introduction – Concatenating, Appending and Multiplying Strings - Strings are Immutable - Built-in String Methods and Functions – Comparing Strings. Lists: Access values in List - Updating values in Lists - Nested lists - Basic list operations - List Methods. Tuple: Creating, Accessing, Updating and Deleting Elements in a tuple – Nested tuples – List Comprehension and Tuples. IV Dictionaries: Creating, Accessing, Adding and Modifying, Deleting, Sorting 12 Elements in a Dictionary – Built in Dictionary Functions and Methods - Difference between Lists and a Dictionaries. Python File Handling: Types of files in Python - Opening and Closing files - Reading and Writing files: write() and writelines() methods- append() method – read() and readline() methods – Opening file with keyword – Splitting words – File methods - File Positions - Renaming and deleting files. Error and V Exception Handling: Introduction to Errors and Exceptions: Syntax errors - 12 Logic errors - Exceptions-Handling Exceptions-Multiple Exceptions in a single Blocks - Raising Exceptions - Built in User Defined Exceptions - Pre-Defined Clean-up Action. Total 60 Text Book Reema Thareja, “Python Programming using problem solving approach”, Second Edition, 2022, 1 Oxford University Press Reference Books 1. Dr. R. NageswaraRao, “Core Python Programming”, First Edition, 2017, Dream tech Publishers. VamsiKurama, “Python Programming: A Modern Approach”, First Edition,2017,Pearson Education 2. India. 3. Mark Lutz, ”Learning Python”, Fourth Edition,2009, O’Reilly Media, Inc., United States of America Kenneth A. Lambert, “Fundamentals of Python – First Programs”, Second Edition,2019, CENGAGE 4. Publication. Bill Lubanovic,”Introducing Python”,Second Edition, 2019, O’Reilly Media, Inc., United States of 5. America Web Resources 1. https://www.programiz.com/python-programming 2. https://www.guru99.com/python-tutorials.html 3. https://www.w3schools.com/python/python_intro.asp Core Course II – PYTHON PROGRAMMING LAB
Code B.Sc. Computer UCS II U23CSC2P1 5 6 Science Course Objectives LO1 To familiarize students with the Python programming language syntax, various data structures and their implementation in Python. LO2 To develop students' problem-solving skills using Python programming constructs. LO3 To provide hands-on experience in file handling and data manipulation in solving real-world problems. Course Programme Outcomes Outcomes CO On completion of this course, students will 1 Develop proficiency in Python programming by writing programs PO1, PO3, PO4, to perform basic arithmetic operations, execute conditional PO6 statements, and implement loops for decision-making and iterative tasks. 2 Utilize functions, modules, and data structures such as lists, tuples PO1, PO2, and dictionaries, to create modular and efficient code for various PO3,PO4, PO6 computational tasks. 3 Apply advanced file handling techniques to read from and write to PO1, PO2, files, encompassing both text and CSV formats, thus enabling PO3,PO4,PO6 effective data manipulation and storage within Python programs. Mapping with Programme Outcomes: CO/PSO PSO 1 PSO 2 PSO 3 PSO 4 CO 1 3 3 3 3 CO 2 3 3 3 3 CO 3 3 3 3 3 Weightage of course contributed to each 9 9 9 9 PSO S-Strong-3 M-Medium-2 L-Low-1 No. of List of Exercises Hours Write a program 1. To convert temperatures in Celsius to Fahrenheit and vice- versa 2. To find largest of three numbers. 3. To print prime numbers between two given numbers. 4. To check whether the given number is a)Palindrome or not. b) Armstrong or Not c) Perfect or not 5. Write a python program to construct the following pattern using nested for loop: * ** *** **** ***** ***** **** *** ** * 6. To define a module to find Fibonacci Numbers. 3 5 7 n x x x x 7. To evaluate the given series: sin(x) = x− + - + …+ 3 ! 5! 7 ! n! 8. To find the sum of two matrices. 9. To find the product of two matrices. 10. To calculate total marks, percentage and grade of a Student. 11. To calculating area of different shapes using function. 12. To implement String Functions. 13. To define an Arithmetic Operations Module with Multiple Functions. 14. To define a module to find Factorial of a number and import the module to another program to calculate the NCR value. 15. To count Odd and Even numbers in a list and print them separately. 16. To swap two elements in a list. 17. To demonstrate working with tuples. 18. To demonstrate working with dictionaries. 19. To counts the number of tabs, spaces and new line characters in a file. 20. To input a text file, the program should print all unique words in alphabetical order. 21. To read a file line by line, copy each line to another file with line numbers specified at the beginning of each line. 22. Display the Contents from already created CSV File. Total 75 Text Book 1 ReemaThareja, “Python Programming using problem solving approach”, Second Edition, 2022, Oxford University Press. Reference Books VamsiKurama, “Python Programming: A Modern Approach”, First Edition,2017,Pearson 1. Education,India. S.Sridhar,J.Indumathi,V.M.Hariharan,”Python Programming”,First Edition,2023,Pearson 2. Education,India 3. Wesly J.Chun,”Core Python Programming”, First Edition,2007,Pearson Education,India Web Resources 1. https://www.programiz.com/python-programming 2. https://www.guru99.com/python-tutorials.html 3. https://www.w3schools.com/python/python_intro.asp