0% found this document useful (0 votes)
49 views4 pages

Syllabus

Uploaded by

ebooks886
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views4 pages

Syllabus

Uploaded by

ebooks886
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Second Year B. Tech.

(CSE-AI-ML) (Semester–IV)

Course 01AMP2 Course Python Programming Lab


Code 06 Name

Teaching Scheme Evaluation Scheme

L T P Credits CIE Marks SEE Marks

-- -- 2 1 50 50

Pre-requisites:

Course Objectives:

01 To Understand the debugging and syntactical process of python programs.


02 To select appropriate loop statements to solve given problems.

03 Make use of appropriate functions to given problem statement


04 To select appropriate Data structure in python.
05 To create libraries and use appropriate libraries in python programs.

Course Outcomes:

At the end of the course, students will be able to


01 Implement programs using different data types, conditionals and loops statements in
python
02 Make use of functions and object-oriented concepts to develop basic programs in
Python
03 Apply file handling techniques for given problems in Python
04 Construct solutions to different problems using NumPy and pandas

List of Experiments

1 Introduction to Python, Setup, working in Python shell and Jupyter Notebook, Basic I/O.
2 Identification and solving of simple real life or scientific or technical problems, and
developing flow charts for the same. (Electricity Billing, Retail shop billing, Sin series,
weight of amotorbike, Weight of a steel bar, compute Electrical Current in Three Phase
AC Circuit, etc.)

3 Implement list, tuple, set and dictionary.

4 Program to find the intersection of two lists

5 Program to remove the ―I th occurrence of the given word in a list where words repeat.

6 Program to find the length of a list using recursion.

7 Program to map two lists into a dictionary.


Implementing real-time/technical applications using Lists, Tuples. (Items present in a
library/Components of a car/ Materials required for construction of a building –
8 operations of
list & tuples)

9 Program to count the occurrences of each word in a given string sentence.


Implementing programs using Functions. (Factorial, largest number in a list, area of
10 shape)

11 Implement functions and recursive functions


Texts 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 Learning & Development Limited, 2017.

Reference Books:

Paul Deitel and Harvey Deitel, “Python for Programmers”, Pearson Education, 1st
1. Edition, 2021

G Venkatesh and Madhavan Mukund, “Computational Thinking: A Primer for


2 Programmers and
Data Scientists”, 1st Edition, Notion Press, 2021

3 https://www.python.org/

4 Martin C. Brown, “Python: The Complete Reference”, 4th Edition, Mc-Graw Hill, 2018.
Guidelines:

Guidelines for Conducting Python Programming Lab Course


Week 1: Introduction to Python

• Objective: Familiarize students with the Python environment and basic syntax.
• Experiments Should Include:
○ Setting up Python and an Integrated Development Environment (IDE).
○ Basic syntax exercises, such as printing "Hello, World!" and simple arithmetic
operations.
○ Experiments involving variables, data types, and basic input/output operations.

Week 2: Control Structures

• Objective: Understand and implement control structures.


• Experiments Should Include:
○ Writing programs using if, elif, and else statements.
○ Implementing loops (for and while) to perform repetitive tasks.
○ Experiment with nested control structures and flowcharts.

Week 3: Functions and Modules

• Objective: Learn to create and use functions and modules.


• Experiments Should Include:
○ Defining and calling functions with different parameter types.
○ Writing programs that utilize return values.
○ Creating and importing custom modules.

Week 4-5: Data Structures

• Objective: Work with built-in data structures.


• Experiments Should Include:
○ Manipulating lists, including indexing, slicing, and list methods.
○ Performing operations with tuples, dictionaries, and sets.
○ Using list comprehensions for concise data manipulation.

Week 6-7: File Handling

• Objective: Manage file operations.


• Experiments Should Include:
○ Reading from and writing to text files.
○ Handling different file formats such as CSV and JSON.
○ Experiment with file handling exceptions and error handling.

Week 8-9: Error Handling and Debugging

• Objective: Implement error handling and debugging techniques.


• Experiments Should Include:
○ Writing programs with try-except blocks to handle exceptions.
○ Using debugging tools and techniques to identify and fix errors.
○ Creating custom exception classes.

Week 10-11: Object-Oriented Programming (OOP)

• Objective: Understand and apply OOP principles.


• Experiments Should Include:
○ Creating classes and objects with attributes and methods.
○ Implementing inheritance, polymorphism, and encapsulation in programs.
○ Designing simple projects using OOP concepts.

Week 12: Advanced Topics and Project Work

• Objective: Explore advanced topics and integrate knowledge through projects.


• Experiments Should Include:
○ Introduction to libraries like NumPy for numerical computations and pandas for data
manipulation.
○ Creating visualizations using matplotlib.
○ Developing a capstone project that integrates various concepts learned throughout the
course.

You might also like