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

1.FPP (T+L) SYLLABUS-new

The document provides information about a Python programming course offered at GIET MAIN CAMPUS including course objectives, outcomes, syllabus details, and a list of experiments for the Python Programming Lab course. The syllabus covers Python fundamentals like data types, operators, control flow, functions, modules, file operations, OOP concepts, regular expressions, exceptions handling, database interaction, multithreading, and CGI. The lab experiments focus on practicing core Python elements, object-oriented concepts, file handling, control structures, data structures like lists, dictionaries, and solving programming problems.

Uploaded by

pimavi9908
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)
203 views4 pages

1.FPP (T+L) SYLLABUS-new

The document provides information about a Python programming course offered at GIET MAIN CAMPUS including course objectives, outcomes, syllabus details, and a list of experiments for the Python Programming Lab course. The syllabus covers Python fundamentals like data types, operators, control flow, functions, modules, file operations, OOP concepts, regular expressions, exceptions handling, database interaction, multithreading, and CGI. The lab experiments focus on practicing core Python elements, object-oriented concepts, file handling, control structures, data structures like lists, dictionaries, and solving programming problems.

Uploaded by

pimavi9908
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

GIET MAIN CAMPUS (AUTONOMOUS), GUNUPUR 765022

Approved by AICTE, Govt. of Odisha and Affiliated to BPUT, Rourkela, Odisha


Accredited by NAAC with a CGPA of 3.28/4 at A Grade and Accredited by NBA
Dist. - Rayagada, Odisha, INDIA
www.giet.edu AR2018

Subject Code SYLLABUS L T P C QP


BCSPC4010 Subject: Fundamentals of Python Programming 3 1 0 4 A
Course Educational Objectives
CEO1 To understand the basics of programming using Python.
CEO2 To Construct and execute basic programs in Python.
CEO3 To implement database connectivity, CGI, Multithreading and web development in python.
Course Outcomes: Upon successful completion of this course, students should be able to:
CO1 Understand the basic concept of Python like data types and syntax of programming.
CO2 use python programming with user defined & built in methods, objects of Python.
CO3 design application using the concepts of file, database access and exception handling.
CO4 create practical and contemporary applications such as web applications and discrete ‐event
simulations, data analysis and IoT devices.
CO-PO & PSO Mapping
PROGRAMME OUTCOMES
COs
1 2 3 4 5 6 7 8 9 10 11 12
CO1 3 1 2 2
CO2 2 3 1 3 1
CO3 2 3 3 3 1
CO4 2 3 3 3 1
SYLLABUS
UNIT:1 (10 Hours)
Introduction: Installation, First Python Program: Interactive Mode Programming, Script Mode
Programming; Identifiers, Reserved Words, Lines and Indentation, Multi-Line Statements,
Quotation & Comments; Assigning Values to Variables, Multiple Assignment.
Standard Data Types: Numbers, Strings, Lists, Tuples, Dictionary; Data Type Conversion; Basic
Operators: Arithmetic, Comparison, Assignment, Bitwise; Operators: Logical, Membership,
Identity; Operators Precedence; Python Numbers & Mathematical functions, Python Strings.
UNIT:2 (10 Hours)
Python Program Flow Control : Conditional blocks using if, else and elif, Simple for loops in
python, For loop using ranges, string, list and dictionaries, Use of while loops in python, Loop
manipulation using pass, continue, break and else, Programming using Python conditional and
loops block
Python Functions, Modules And Packages: Organizing python codes using functions,
Organizing python projects into modules, Importing own module as well as external modules,
Understanding Packages, Powerful Lamda function in python, Programming using functions,
modules and external packages
Python String, List And Dictionary Manipulations : Building blocks of python programs,
Understanding string in build methods, List manipulation using in build methods, Dictionary
manipulation, Programming using string, list and dictionary in build functions
UNIT:3 (12 Hours)
Python File Operation : Reading config files in python, Writing log files in python , Manipulating
file pointer using seek, Programming using file operations, Understanding read functions, read(),
readline() and readlines(), Understanding write functions, write() and writelines()
Python Object Oriented Programming – Oops: Concept of class, object and instances,
Constructor, class attributes and destructors, Real time use of class in live projects, Inheritance ,
overlapping and overloading operators, Adding and retrieving dynamic attributes of classes ,
GIET MAIN CAMPUS (AUTONOMOUS), GUNUPUR 765022
Approved by AICTE, Govt. of Odisha and Affiliated to BPUT, Rourkela, Odisha
Accredited by NAAC with a CGPA of 3.28/4 at A Grade and Accredited by NBA
Dist. - Rayagada, Odisha, INDIA
www.giet.edu AR2018

Programming using Oops support.


Python Regular Expression : Powerful pattern matching and searching, Power of pattern
searching using regex in python, Real time parsing of networking or system data using regex,
Password, email, url validation using regular expression, Pattern finding programs using regular
expression
Python Exception Handling : Avoiding code break using exception handling, Safe guarding file
operation using exception handling, Handling and helping developer with error code, Programming
using Exception handling
UNIT:4 (15 Hours)
Python Database Interaction: SQL Database connection using python, Creating and searching
tables, Reading and storing config information on database, Programming using database
connections
Python Multithreading: Understanding threads, forking threads, Synchronizing the threads,
Programming using multithreading
Python CGI Introduction : Writing python program for CGI application, Creating menus and
accessing files, Server client program
Teaching Methods: Chalk& Board/ PPT/Video Lectures
Text Books:
1. “Python: The Complete Reference”, Martin C. Brown, McGraw-Hill/Osborne Media.
2. “Learning Python”, Mark Lutz, O’Reilly Media, Inc., Fifth Edition, 2013.
Reference Books:
1. “Expert Python Programming”, Tarek Ziad, Packt Publishing.
2. “Python Essential Reference, David Beazley”, Dveloper's Library, Sams Publishing.
GIET MAIN CAMPUS (AUTONOMOUS), GUNUPUR 765022
Approved by AICTE, Govt. of Odisha and Affiliated to BPUT, Rourkela, Odisha
Accredited by NAAC with a CGPA of 3.28/4 at A Grade and Accredited by NBA
Dist. - Rayagada, Odisha, INDIA
www.giet.edu AR2018

Subject Code SYLLABUS L T P C QP


BCSPC4110 Laboratory : Python Programming Lab 0 0 2 1
Course Educational Objectives
CEO1 To understand the basics of programming using Python.
CEO2 To Construct and execute basic programs in Python.
Course Outcomes: Upon successful completion of this course, students should be able to:
CO1 Demonstrate the understanding and usage of core python scripting elements.
CO2 Interpret python especially the object‐oriented concepts and the built‐in objects of Python
CO3 Understand and apply the concepts of file and exception handling
CO4 Create practical and contemporary applications such as web applications and discrete ‐event
simulations
CO-PO & PSO Mapping
PROGRAMME OUTCOMES PSOs
Cos
1 2 3 4 5 6 7 8 9 10 11 12 1 2 3
CO1 3 1 2 2 1
CO2 2 3 1 3 1
CO3 2 3 3 3 2
CO4 2 3 3 3 2
List of Experiments
Exercise 1 - Basics
a) Running instructions in Interactive interpreter and a Python Script
b) Write a program to purposefully raise Indentation Error and Correct it
Exercise 2 - Operations
a) Write a program to compute distance between two points taking input from the user (Pythagorean
Theorem)
b) Write a program add.py that takes 2 numbers as command line arguments and prints its sum.
Exercise - 3 Control Flow
a) Write a Program for checking whether the given number is a even number or not.
b) Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4, . . . ,1/10
c) Write a program using a for loop that loops over a sequence. What is sequence?
d) Write a program using a while loop that asks the user for a number, and prints a countdown from
that number to zero.
Exercise 4 - Control Flow - Continued
a) Find the sum of all the primes below two million. Each new term in the Fibonacci sequence is
generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5,
8, 13, 21, 34, 55, 89, ...
b) By considering the terms in the Fibonacci sequence whose values do not exceed four
million, find the sum of the even-valued terms.
Exercise - 5 - DS
a) Write a program to count the numbers of characters in the string and store them in a dictionary
data structure
b) Write a program to use split and join methods in the string and trace a birthday with a dictionary
data structure.
Exercise - 6 DS - Continued
a) Write a program combine_lists that combines these lists into a dictionary.
b) Write a program to count frequency of characters in a given file. Can you use character
frequency to tell whether the given file is a Python program file, C program file or a text file?
Exercise - 7 Files
a)Write a program to print each line of a file in reverse order.
GIET MAIN CAMPUS (AUTONOMOUS), GUNUPUR 765022
Approved by AICTE, Govt. of Odisha and Affiliated to BPUT, Rourkela, Odisha
Accredited by NAAC with a CGPA of 3.28/4 at A Grade and Accredited by NBA
Dist. - Rayagada, Odisha, INDIA
www.giet.edu AR2018

b) Write a program to compute the number of characters, words and lines in a file.
Exercise - 8 Functions
a) Write a function ball_collide that takes two balls as parameters and computes if they are
colliding. Your function should return a Boolean representing whether or not the balls are colliding.
Hint: Represent a ball on a plane as a tuple of (x, y, r), r being the radius If
(distance between two balls centers) <= (sum of their radii) then (they are colliding)
b) Find mean, median, mode for the given set of numbers in a list.
Exercise - 9 Functions - Continued
a) Write a function nearly_equal to test whether two strings are nearly equal. Two strings a and b are
nearly equal when a can be generated by a single mutation on b.
b) Write a function dups to find all duplicates in the list.
c) Write a function unique to find all the unique elements of a list.
Exercise - 10 - Functions - Problem Solving
a) Write a function cumulative_product to compute cumulative product of a list of numbers.
b) Write a function reverse to reverse a list. Without using the reverse function.
c) Write function to compute GCD, LCM of two numbers. Each function shouldn’t exceed one line.
Exercise 11 - Multi-D Lists
a) Write a program that defines a matrix and prints
b) Write a program to perform addition of two square matrices
c) Write a program to perform multiplication of two square matrices
Exercise - 12 - Modules
a) Install packages requests, flask and explore them using (pip)
b) Write a script that imports requests and fetch content from the page. Eg. (Wiki)
c) Write a simple script that serves a simple HTTP Response and a simple HTML Page
Exercise - 13 OOP
a) Class variables and instance variable
i) Robot
ii) ATM Machine
Exercise - 14 GUI, Graphics
a) Write a GUI for an Expression Calculator using tk.
b) Write a program to implement following figures using turtle

Exercise - 15 - Testing
a) Write a test-case to check the even numbers function even_numbers which return True on passing
a list of all even numbers.
b) Write a test-case to check the function reverse_string which returns the
reversed.
Exercise - 16 - Advanced
a) Build any one classical data structure.
b) Write a program to solve knapsack problem

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy