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

Computer Programming SYLLABUS

The document outlines a Computer Programming course focused on Python, detailing course objectives that include understanding Python syntax, control structures, and object-oriented programming. It includes a syllabus divided into five units covering topics from basic programming to web development and data analysis. Additionally, it provides a list of recommended books and experiments to reinforce learning through practical applications.

Uploaded by

rohan.s.7106
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Computer Programming SYLLABUS

The document outlines a Computer Programming course focused on Python, detailing course objectives that include understanding Python syntax, control structures, and object-oriented programming. It includes a syllabus divided into five units covering topics from basic programming to web development and data analysis. Additionally, it provides a list of recommended books and experiments to reinforce learning through practical applications.

Uploaded by

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

Computer Programming (3-0-2)

Course Objectives:

CO1: To understand the fundamental syntax and features of Python.

CO2: To utilize control structures and functions to solve programming problems.

CO3: To design and develop object-oriented Python programs.

CO4: To implement file handling operations and perform input/output operations.

CO5: To apply Python programming concepts to real-world scenarios.

Syllabus

Unit 1: Introduction to Python Programming (10 lectures)

Introduction to Python and Environment Setup, Python Syntax and Basic Data Types, Variables,
Operators, and Expressions, Control Structures and Conditional Statements, Loops and Iterations: For,
While, For-else, Range function Sentinel-Controlled Iteration , break and continue Statements, Defining
Functions, Functions with Multiple Parameters, Default Parameter Values, Keyword Arguments,
Arbitrary Argument Lists, Lists and Tuples, Associated in-built functions, Dictionaries and Sets

Unit 2: Object-Oriented Programming in Python (7 lectures)

Object-Oriented Programming (OOP) Fundamentals, Classes and Objects, Inheritance and


Polymorphism, Advanced OOP Concepts (e.g., Encapsulation, Abstraction), Generators and Iterators,
Functional Programming Techniques (e.g., Lambda Functions, Map, Filter), Modules and Packages

Unit 3: Arrays and Strings (8 lectures)

Introduction to NumPy Arrays, Array Operations and Functions, Indexing and slicing arrays, Array
Manipulation and Stacking, multidimensional arrays and matrices, Creating and manipulating strings,
String Operations, Regular Expressions, pattern matching and substitution, Working with Dates and
Times, Introduction to pandas Series and DataFrames, Data Analysis with Pandas (e.g., Filtering,
Grouping, Aggregation)

Unit 4: File and Exception handling (8 lectures)

File handling in Python, Different types of files and their uses, Updating text files: appending and
modifying data, Understanding serialization and deserialization, Working with JSON files for data storage
and retrieval, Handling Exceptions using try and except statements, Catching and handling specific
exceptions, Raising custom exceptions, ‘finally’ clause for cleanup operations, Explicitly raising
exceptions with ‘raise’, Working with CSV files

Unit 5: Web Development and data analysis using python (7 lectures)


Introduction to Web Development with Python, Introduction to Flask Framework, Defining routes and
handling HTTP methods (GET, POST), Request and response objects in Flask, Building Web
Applications with Flask, Introduction to Data Visualization, Data Visualization with Matplotlib

Recommended books:

1. R. Nageswara Rao, “Core Python Programming” Dreamtech Press, 3rd Edition


2. Martin C. Brown, “Python: The Complete Reference” McGraw Hill Publications.
3. Paul J. Deitel, Harvey Deitel “Python for Programmers”, Pearson publications, 1st
Edition.
4. Yashavant Kanetkar, “Let Us Python”. BPB Publications, 5th edition.

Experiment List

1) • Install Python and set up the development environment.


• Write a Python program to print "Hello, World!".
2) • Write a Python program to calculate the area of a circle given the radius.
• Perform basic arithmetic operations on variables.
3) • Write a Python program to check if a number is even or odd.
• Implement a simple calculator using conditional statements.
4) • Write a Python program to print the Fibonacci series using a for loop.
• Use a while loop to find the factorial of a number.
5) • Write a function to calculate the sum of two numbers.
• Implement a function to check if a given string is a palindrome.
6) • Perform various operations on lists (e.g., sorting, slicing).
• Use dictionaries to store and retrieve student grades.
7) • Create a class to represent a book with attributes and methods.
• Implement inheritance by creating subclasses for different types of books.
8) • Write a generator function to generate the Fibonacci series.
• Use lambda functions, map, and filter to perform operations on a list.
9) • Create a module that contains functions for mathematical operations.
• Import and use functions from external packages (e.g., math, random).
10) • Create and manipulate NumPy arrays.
• Perform basic operations and indexing on arrays.
11) • Implement string operations (e.g., concatenation, slicing).
• Use regular expressions to validate email addresses.
12) • Read data from a text file and perform operations.
• Handle exceptions for file operations and input validation.
13) • Create a Flask application with routes and HTTP methods.
• Implement a simple web form and display user input.

You might also like