322x Filetype PDF File size 0.53 MB Source: www.git.edu
Python Programming
Course learning objectives
1. To acquire programming skills in core Python.
2. To acquire Object Oriented Skills in Python
3. To develop the skill of designing Graphical user Interfaces in Python
4. To develop the ability to write database applications in Python
Pre-requisites : Computer Concepts and C Programming,
Database Management Systems
Unit – I 8 Hours
Introduction to Python, use IDLE to develop programs, Basic coding skills, working with
data types and variables, working with numeric data, working with string data, Python
functions, Boolean expressions, selection structure, iteration structure, Illustrative Programs,
Exercises
Unit – II 8 Hours
Define and use functions and modules, working with recursion, Basic skills for working with
lists, work with a list of lists, work with tuples, work with dates and times, get started with
dictionaries, Illustrative programs, Exercises.
Unit – III 6 Hours
An introduction to file I/O, use text files, use CSV files, use binary files, Handle a single
exception, handle multiple exceptions, Illustrative programs, Exercises
9 Hours
Unit – IV
Object Oriented Programming, An introduction to classes and objects, define a class, work
with object composition, work with encapsulation, work with inheritance, override object
methods,
Illustrative programs, Exercises
Unit –V 8 Hours
An introduction to relational databases, SQL statements for data manipulation, Using SQLite
Manager to work with a database, Using Python to work with a database, Creating a GUI that
handles an event, working with components, Illustrative programs, Exercises
Books
1. Michael Urban and Joel Murach, Python Programming, Shroff/Murach, 2016
Reference Book
1. Mark Lutz, Programming Python, O`Reilly, 4th Edition, 2010
Course Outcomes (COs)
At the end of the course, the student will be able to Bloom’s
Level
1. Explain basic principles of Python programming language L2
2. Implement object oriented concepts, L3
3. Implement database and GUI applications. L3
Program Outcome of this course (POs) PO No.
Design/development of solutions: Design solutions for complex
1. engineering problems and design system components or processes that meet PO3
the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
Modern tool usage: Create, select, and apply appropriate techniques,
2. resources, and modern engineering and IT tools including prediction and PO5
modeling to complex engineering activities with an understanding of the
limitations.
Life-long learning: Recognize the need for, and have the preparation and
3. ability to engage in independent and life-long learning in the broadest PO12
context of technological change.
Unix and Shell Programming
Course learning objectives
1. To provide introduction to UNIX operating system and its File System.
2. To develop the ability to formulate Regular Expressions and use them for Pattern Matching.
3. To gain an understanding of important aspects related to the Shell and the Process.
4. To provide a comprehensive introduction to Shell Programming, Services and Utilities.
Pre-requisites: Basic knowledge of computer concepts & programming.
Unit – I 8 Hours
Introduction to UNIX and File-system
Inside UNIX, General features of a command, PATH, Internal and External commands, Command
structure, General purpose utilities.
The File System: The File, What’s in a (File)name, The Parent-Child relationship, The UNIX File
System, pwd, Absolute pathnames, cd, Relative pathnames, mkdir, rmdir, cp, rm, mv, cat, file,
File Attributes: ls, ls -l, ls -d, File Permissions, chmod.
Unit – II 9 Hours
vi/vim Editor
vi Preliminaries ,Quitting vi – The Last Line Mode, Inserting and Replacing Text , Saving Text(:w) ,
Exit to the UNIX Shell, The Repeat Factor, The Command Mode , Navigation , Operators , Deleting ,
Moving and Yanking Text, Changing Text ( c and - ), The Dot: Repeating the Last Command ,
Undoing Last Editing Instructions ( u and U), String Search, Searching with Regular Expressions,
Search and Replace (:s),
Unit – III 8 Hours
Shell and Process:
The Shell: The shell as command processor, Pattern matching, Redirection, Pipes, tee, Command
substitution.
The Process: Understanding the Process, How a process is created, The Login shell, init, Internal and
External commands, ps, running jobs in background, nice, Signals, kill.
Unit – IV 7 Hours
Filters :SimpleFilters:wc,cmp,diff,head ,tail,sort, Filters using Regular Expressions: grep:Searching
for pattern,grep options,regular expressions- Round one ,egrep and fgrep: The other members ,regular
expressions- Round two,sed: The Stream editor,Line addressing,context addressing.
Unit – V 8 Hours
Shell Programming:
Shell variables, Shell Scripts, read: Making scripts interactive, Positional parameters, Exit status of
command, Logical operators && and||- Conditional execution, exit: script termination, the if
conditional, test and [ ], the case conditional, expr: Computation and String handling, sleep and wait,
while and until : Looping, for: Looping with a list.
Text Books
1. Sumitabha Das: “YOUR UNIX – The Ultimate Guide”, Tata McGraw Hill, 23rd reprint, 2012
and onwards.
th
2. Sumitabha Das: “UNIX – Concepts and Applications”, 4 Edition, Tata McGraw Hill,
Copyright ©2006 and onwards.
Reference Books
1. Behrouz A. Forouzan and Richard F. Gilberg: “UNIX and Shell Programming”, Cengage
Learning, 2005 and onwards.
2. M.G. Venkateshmurthy: “UNIX & Shell Programming”, Pearson Education, 2005and
onwards.
Course Outcome (COs)
At the end of the course, the student will be able to Bloom’s
Level
1. Describe the architecture and features of the UNIX operating system and L1, L2
distinguish it from other operating systems.
2. Demonstrate UNIX commands for file handling and process control L3
3. Construct regular expressions for pattern matching and apply them to various L3
filters for a specific task.
4. Analyze a given problem and apply requisite facets of shell programming in L4
order to devise a shell script to solve the problem
Program Outcome of this course (POs) PO No.
1. Engineering knowledge: Apply the knowledge of mathematics, science, 1
engineering fundamentals, and an engineering specialization to the solution
of complex engineering problems
2. Design/development of solutions: Design solutions for complex 3
engineering problems and design system components or processes that meet
the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
3. Life-long learning: recognizing the need for, and have the preparation and 12
ability to engage in independent and life-long learning in the broadest
context of technological change.
no reviews yet
Please Login to review.