0% found this document useful (0 votes)
7 views

6. Python_Final (3)

The document outlines a Python Programming course with a practical focus, covering basic concepts, control structures, data structures, and string/file handling. It includes course objectives, outcomes, detailed content units, and a list of practical experiments aligned with the learning outcomes. Additionally, it provides references for textbooks and online resources to support learning.

Uploaded by

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

6. Python_Final (3)

The document outlines a Python Programming course with a practical focus, covering basic concepts, control structures, data structures, and string/file handling. It includes course objectives, outcomes, detailed content units, and a list of practical experiments aligned with the learning outcomes. Additionally, it provides references for textbooks and online resources to support learning.

Uploaded by

Barkha Kumari
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

23UXXXXX: Python Programming

Teaching Scheme: Credit: Examination Scheme:

Practical: 04Hrs./Week 2 INT:25 EXT:25


Prerequisite (If any): Programming for Problem Solving, Foundation of Data Analytics
Course Objectives:
1. 1. To learn the basic concepts of Python keywords, identifiers, and data types.

2. 2. To be aware about the concepts of control structure, functions.


3. To recognize data structure like list, set, tuple and dictionary.
4. Acquire the concepts of string and file handling.

Course Outcomes: After completing this course, students will be able to


CO1. Learn the basic concepts keywords, identifiers, data types to implement simple Python program .

CO2. Apply control structure, functions to demonstrate Python program.

CO3. Perform the different operations on data structure like list, set, tuple and dictionary.

CO4. Demonstrate Python program for string and file handling.

Course Contents Hrs.


Unit I: Basic of Python Programming 6
Key features, applications, environment setup, Different modes, identifiers, reserved words,
lines and indentation, comments, quotation, keywords and identifiers, Variables: variable
naming rules, creating variables, global and local variables, Data Types: int, float, complex,
built-in data types, Operators: Arithmetic operators, comparison (relational) operators,
assignment, operators, logical operators, identity operators, bitwise operators
Unit II: Control Structure and Functions 6
Conditional Statements: if, if-else, nested if, if-elif-else statements, Loops: while loop, for
loop.
Branching Statements: break Statement, continue Statement, return Statement Functions:
Syntax and basics of a function, use of a function, parameters and arguments in a function,
local and global scope of a variable, the return statement, recursive functions, the lambda
function. Built-in functions
Unit III: Python Data Structures 8

List: Basic concept, creating and accessing elements, list operations, list comprehension, list
slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters.
Set: Basics of sets, create a set, add and remove set, common set operations, working with
sets.
Tuple: Basic concepts, creating and accessing a tuple, tuples operations, lists vs. tuples,
iterating through a tuple, slicing with negative index numbers, tuple assignment, tuple as
return value.
Dictionary: Basic concept, creating dictionary, accessing dictionary items, updating
dictionary, deleting elements from dictionary, operations in dictionary, built-in dictionary
functions.
Unit IV: Python for String and File Handling 4
Strings: A string is a sequence, len, string slices, searching, looping, counting, string methods
File Handling: File open, read, right, update, delete

1. A. B. Downey, “Think Python, 2e: How to Think Like a Computer Scientist”, O


′Reilly, 2015.

Text 2. T R Padmanabhan, ‘Programming with Python’, Springer Nature Singapore


Books
3. James Payne, “Beginning Python: Using Python and Python 3.1, Wrox
Publication

1. Eric Matthes, “Python Crash Course”, No Starch Press, 2nd Edition,


Reference
2. Hands- On Data Preprocessing in Python, Roy Jafari, Packet Publisher
Books
1. Python Introduction to Programming:
https://ebookcentral.proquest.com/lib/ghrcem/detail.action?
docID=4895083&query=python%20programming

2. Beginning Programming with Python for Dummies:


E Books https://ebookcentral.proquest.com/lib/ghrcem/detail.action?
docID=1775471&query=python%20programming

3. Python in Easy Steps, 2nd Edition: Makes Programming Fun!:


https://ebookcentral.proquest.com/lib/ghrcem/detail.action?
docID=7075484&query=python%20programming
Online 1. https://onlinecourses.swayam2.ac.in/cec22_cs20/preview
References

List of Practical:
Sr. Name of Experiment Co Mapping
No.
1 Write a program by using basic concepts like input, output, variable,
CO1
keywords, and identifiers.
2 Write a program to demonstrate the of arithmetic operators. CO1
3 Write a program to demonstrate working of control structures. CO2
4 Write a program to demonstrate working of different types of functions. CO2
5
Write a program to demonstrate working of recursion. CO2
6 Write a program to perform different operations on list:
i. Append
ii. Extend
iii. Insert CO3
iv. Remove
v. Pop
vi. Slice
7 Write a program to perform different operations on set:
i. Update
ii. Remove the element CO3
iii. Clear
iv. pop
8 Write a program to perform different operations on tuple:
i. Accessing
ii. Concatenation CO3
iii. Slicing
iv. Deleting
9 Write a program to demonstrate the working of dictionary CO3
10 Write a program demonstrates various operations on strings:
i. Slicing
ii. Concatenating
iii. Finding the length of the string CO4
iv. Converting the string to uppercase and lowercase
v. Replacing a substring with another substring
vi. Splitting the string into a list of substrings
11 Write a program to demonstrate different operations on file:
i. Create
ii. Open
iii. Read CO4
iv. Write
v. Update
vi. Delete
12 CO1, CO2,
Mini Project
CO3, CO4
Content beyond syllabus
1 Write a Python program to create datagram using Numpy and Pandas library
2 Write a Python program to import existing dataset and perform different operations on it
using Numpy and Pandas library
3 Write a Python program to plot the different types of graph using Matplotlib library

You might also like