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

Python Programming

The document outlines a Python Programming course with objectives including understanding Python basics, functions, data structures, file operations, and libraries. It details five units covering topics such as control flow, lists, dictionaries, file handling, and libraries like NumPy and Pandas, along with practical applications and experiential learning activities. The course aims to equip students with skills to develop and execute Python programs, handle data, and perform operations using Python libraries.

Uploaded by

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

Python Programming

The document outlines a Python Programming course with objectives including understanding Python basics, functions, data structures, file operations, and libraries. It details five units covering topics such as control flow, lists, dictionaries, file handling, and libraries like NumPy and Pandas, along with practical applications and experiential learning activities. The course aims to equip students with skills to develop and execute Python programs, handle data, and perform operations using Python libraries.

Uploaded by

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

U24CS201

Python Programming
L T P C

3 - 3 4.5
Course Objectives
1 To understand the basics iof python programming .
2 To define Python functions and strings.
3 To use Python data structures - lists, tuples, dictionaries to represent complex data.
4 To perform file operations in Python.
5 To learn & use python libraries.
UNIT 1 - Introduction to Python 9+9
Python interpreter and interactive mode, debugging; values and types: int, float, boolean, string, and list; variables, expressions,
statements, tuple assignment, precedence of operators, comments; Illustrative programs: circulate the values of n variables, distance between two points.

Experiential Learning : Write a Script that prompts the user to input the name ,date of birth and favourite number and calculate the current age of the person.
Industry Application : Case Study : Develop a basic structure for a Grocery store management system by defining attributes like name,price and quantity for products in the store.
Content Beyond Syllabus : Python Global Intrepreter Lock(GIL).
Practicals:
1.Implement a python program to print an Electricity Bill .(for domestic usage.)
2.Implement a Python program to exchange the values of two variables. (using simple statements and expressions )

UNIT 2 CONTROL FLOW, FUNCTIONS, STRINGS


9+9
Conditionals: Boolean values and operators, conditional (if), alternative (if-else),chained conditional (if-elif-else);Iteration: state, while,for, break, continue, pass; Fruitful functions, return values,
parameters, local and global scope, function composition,Lambda functions, recursion; Strings: string slices, immutability, string functions and methods, string module; Illustrative programs: square
root, sum of individual digits of a number.
Experiential Learning : Create a number Guessing game which gives feedback whether the guess ia high or low.
Industry Application : Case Study: Write a python program to generate the total sales of the Grocery store.Also print the stock availability.(Total sales for a month for all purchased products).
Content Beyond Syllabus : Object oriented programming - Creating classes and Objects , OOPs principles.
Practicals:
1.Implement a Python program to print a Number series & Number Patterns.(using Iterative loops).
2.Implement a Python program to find Factorial and largest number in a list(using Functions.).
3.Implement a Python program to perform operations on strings like string reverse,string concatenation & substring .(use match case).

UNIT 3 - LISTS, TUPLES, DICTIONARIES 9+9


Lists: list operations, list slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters; Tuples: tuple assignment, tuple as return value; Dictionaries: operations and methods; advanced
list processing - list comprehension; Illustrative programs: linear search, binary search., Students marks statement.
Experiential Learning :Write a python program to collect inputs from forms or surveys.
Industry Application : Case Study : Update the Grocery store by adding new products,removing the unavailable stock and display the product catalogue with price and quantity(lists,sets & dictionaries).
Content Beyond Syllabus : Sorting in List & Tuples , Iteration in Dictionaries.
Practicals:
1.Implement a Python program using Lists & Tuples. (operations of list & tuples - Book Catalogue)
2.Implement a Python program using Sets, Dictionaries. (operations of Sets - Product Categories , operations on Dictionaries - Product Categories)

UNIT 4 FILES, EXCEPTIONS AND MODULES 9+9


Files and exceptions: text files, reading and writing files, format operator; command line arguments, errors and exceptions, handling exceptions, modules, packages, Python Itertools & functools
modules, Illustrative programs: Marks range validation.
Experiential Learning : Write a program that reads content from csv files and give summary statistics as output.( like max value,min value and mean).
Industry Application : Case Study: Validate the Grocery store using Files and handle the deficeits.(exception handling).
Content Beyond Syllabus : Introduction to package management tools like pip,conda.
Practicals:
1.Implement a Python program to perform file operations (copy from one file to another, word count, longest word).
2.Implement a Python program to handle Exceptions.( voter’s age validity).

UNIT 5 LIBRARIES,PACKAGES 9+9


Python libraries - NumPy -Array manipulations, numeric ranges, Slicing, indexing, Searching, Sorting, and splitting, Pandas - Data Analysis, Data-frame, Data selection, group-by, Series, sorting,
searching, and statistics, dask (pandas wrapper) ,Matplotlib- Data visualization , Line plot, Style properties, multi line plot, scatter plot.
Experiential Learning : Developing a game activity using Pygame like bouncing ball, elliptic orbit.
Industry Application : Case Study: Provide a visual representation for total sales,quantity available,profit ,deficits of the Grocery store.
Content Beyond Syllabus :Machine Learning libraries like Tensorflow,Keras.
Practicals:
1.Implement a Python program to create a weather data chart using Python Standard Libraries (pandas, numpy. Matplotlib, scipy ) .

TOTAL HR 90
Course Outcomes
At the end of the course, the student will be able to
CO1 Develop and execute simple Python programs
CO2 Learn to handle strings and funtions in python.
CO3 Represent compound data using Python lists, tuples, dictionaries
CO4 Read and write data from/to files in Python programs.
CO5 Perform basic operations using python Libraries
TEXT BOOKS
1. Allen B. Downey, “Think Python: How to Think like a Computer Scientist”, 2nd Edition, O’Reilly Publishers, 2016.

2.Karl Beecher, “Computational Thinking: A Beginner's Guide to Problem Solving and Programming”, 1st Edition, BCS
REFERENCES
1. 1.Paul Deitel and Harvey Deitel, “Python for Programmers”, Pearson Education, 1st Edition, 2021
2. G Venkatesh and Madhavan Mukund, “Computational Thinking: A Primer for Programmers and Data Scientists”, 1st Edition, Notion
3. John V Guttag, "Introduction to Computation and Programming Using Python: With Applications to Computational Modeling
4.Eric Matthes, “Python Crash Course, A Hands - on Project Based Introduction to Programming”, 2nd Edition, No Starch Press, 2019.

5.Martin C. Brown, “Python: The Complete Reference”, 4th Edition, Mc-Graw Hill, 2018.
CO/PO, PSO Mapping
(3/2/1 indicates the strength of correlation) 3-Strong 2-Medium, 1-Weak
Programme Outcomes (POs) and Programme Specific Outcomes PSOs'
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
CO1 2 - - - - - - - - - - 2 - - -
CO2 2 - - - - - - - - - - 2 - - -
CO3 2 - 2 2 - - - - - - - 2 3 3 -
CO4 2 3 2 2 - - - - 2 1 1 2 3 3 -
CO5 2 3 2 2 2 1 1 1 2 1 1 2 3 3 1
Avg 2 3 2 2 2 1 1 1 2 1 1 2 3 3 1

You might also like