You are on page 1of 3

Programming in Python

2 0 2 3.0
OBJECTIVES
 To provide a fundamental understanding of programming in Python by
creating a variety of scripts.
 To give essential knowledge on various data types, functions, loops and
expressions.
 To develop python applications for the Web and for systems design.

COURSE OUTCOMES
 Characterise the basic data types, variables and loop commands
 Apply function and stings to build python program for string and data manipulations.
 Apply the basic command to operate files to handle large data.
 Apply library functions for numerical data manipulation, arrays and image and video
manipulations.
 Create a python program to operate the Arduino and Raspberry Pi based applications.

Unit I
Introduction to python
Installation and Working with Python - Python variables - Python basic Operators - python
blocks - Declaring and using numeric data types: int, float, complex - Using string data type and
string operations - Defining list and list slicing - Use of Tuple data type - 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 -
6 Hours
Unit II
Functions and Strings
Loop manipulation using pass, continue, break and else - Programming using conditional and
loops block - Codes using functions - Projects into modules - Importing own module as well as
external modules - Packages - Powerful Lamda function in python - Programming using
functions, modules and external packages - Building blocks of python programs - String in build
methods - List manipulation using in build methods - Dictionary manipulation - Programming
using string, list and dictionary in build functions.
6 Hours
Unit III
File Operation, Exception handling and Expression
Reading config files in python - Writing log files in python - read functions, read(), readline()
and readlines() - write functions, write() and writelines() - Manipulating file pointer using seek -
Powerful pattern matching and searching - 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 - Avoiding code break using exception handling
- Safe guarding file operation - Handling and helping developer with error code.
6 Hours
Unit IV
Libraries for engineering applications
NumPy: Numerical python – Scipy: N-dimensional array manipulation – Matplotlib:
Visualization - OpenCV: Image reading, writing, visualization, Image and video manipulation.
6 Hours
Unit V
Python for microcontroller
Introduction to threads - Forking threads - Synchronizing the threads - Programming using
multithreading - Installing smtp python module - Sending email - Reading from file and sending
emails to all users addressing them directly for marketing - Writing python program for CGI
applications - Creating menus and accessing files - Server client program
6 Hours

Unit VI
Application
Web development, Navigation – Obstacle avoidance – Robotics applications – Automations.

LIST OF EXPERIMENTS

1. Perform the basic arithmetic operations using python.


2. Perform the strings and function operation using python.
3. Execute palindrome, prime number, sorting operation using arithmetic
functions in python.
4. Perform factorial, Fibonacci series using python loops instructions.
5. Implement file handling operation using python commands.
6. Interface Ultrasonic, Temperature, proximity sensors to acquire data using
python from arduino.
7. Interface Raspberry Pi with DC motor to control the speed and direction using
python programming.

15 Hours
Total: 45 Hours

References
1. Brown, Martin C. Python: the complete reference. McGraw-Hill Professional,
2001.
2. Chun, Wesley. Core python programming. Pearson Education India, 2000.
3. Pratik Desai, Python Programming for Arduino, Packt Publishing Limited,
2015.
4. Simon Monk, Programming the Raspberry Pi, Getting Started with Python,
McGraw-Hill Education TAB, Second Edition, 2013.
5. Lutz, Mark, and Mark Lutz. Programming python. Vol. 8. O'Reilly, 1996.

ASSESSMENT PATTERN
Unit
Remember Understand Apply Analyze Evaluate Create Total
No
F C P M F C P M F C P M F C P M F C P M F C P M
I 2 4 - - 4 6 - - - - - - - 2 - - - 2 - - - - - - 20
II 2 4 - - 4 8 - - - - - - - 2 - - - - - - - - - - 20
III 2 4 - - 4 8 - - - 4 - - - - - - - - - - - - - - 22
IV - 2 - - 2 2 - - 4 8 - - - - - - - 2 - - - - - - 20
V 2 2 - - 2 8 - - - 2 - - - 2 - - - - - - - - - - 18
8 16 - - 16 32 - - 4 14 - - - 6 - - - 4 - - - - - - 100

You might also like