0% found this document useful (0 votes)
1K views

31.5 - Python Syllabus

This document outlines a course on Python Programming with Web Frameworks. The course has 4 units that cover Python fundamentals like data types, operators, functions, classes and exceptions. It then focuses on the Django web framework, covering its template system, interacting with databases, administration site and form processing to develop web applications. The course aims to help learners develop Python programs and web apps using the Django framework.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

31.5 - Python Syllabus

This document outlines a course on Python Programming with Web Frameworks. The course has 4 units that cover Python fundamentals like data types, operators, functions, classes and exceptions. It then focuses on the Django web framework, covering its template system, interacting with databases, administration site and form processing to develop web applications. The course aims to help learners develop Python programs and web apps using the Django framework.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

XXXI Academic Council Meeting

SASTRA University
Item No.:31.5

COURSE CODE: BCSDCS 6xx / BITDIT 6xx / BICDIC 6xx L T P C


3 1 0 4
Semester: VI
PYTHON PROGRAMMING WITH WEB FRAMEWORKS
(Common for CSE, IT and ICT)
Course Objective:
This course will help the learner to develop Python programs for a given problem using
programming constructs. They will also be able to develop web applications in Python using
Django Web framework.

UNIT I 15 Periods
Numeric Types: Basics-Numbers in action-Other Numeric Types. String Fundamentals:
Basics-Literals - Strings in Action-Methods- Formatting Expressions String Formatting method
calls. List and Dictionaries: Lists-Lists in action-Dictionaries-Dictionaries in Action. Tuples,
Files: Tuples in Action-Need for Lists and Tuples-Files. Assignments, Expression and Print:
Assignment Statements, Expression Statements, Print Operations. If Tests: if statements-Block
and statement delimeters -Truth values and Boolean Tests-Ternary expression. While and for
loops: While loops-break, continue, pass and the Loop else-for loops-Loop Coding Techniques.
Iterations and Comprehensions: Iteration Protocol-Manual iteration-Other Built-in Type
Iterables-List Comprehensions-Other Iteration contexts-Other Iterables in Python 3.X.

UNIT II 15 Periods
Function Basics: Coding Functions. Scopes: Python Scope Basics-global statement-Scopes
and Nested functions-Non local statement in Python 3.X-Need for non local. Arguments:
Argument passing basics-Special Argument Matching Modes-Generalized Set functions-Python
3.X print function emulation. Advanced Function topics: Function Design Concepts-
Recursive Functions-Attributes and Annotations-Anonymous functions: lambda-Functional
Programming tools. Comprehensions and Generations: List Comprehension and Function
Tools-Generator functions and expressions. Benchmarking Interlude: Timing Iteration
alternatives - Python with timeit-pystones Function Gotchas. Module Coding basics:
Creation-Usage-Name spaces-Reading modules. Module Packages: Package import basics-
Need for package imports.

UNIT III 15 Periods


Class coding details: The Class statement-Methods-Inheritance-Name spaces. Operator
Overloading: Basics-Indexing and Slicing-Index iteration-Iterable objects-Membership-Attribute
access-String Representation-Use of Right Side and In Place-Call expressions-comparisons-
Boolean Tests-Destruction. Advanced class Topics: Extending built in types-New Style class
model-New Style class changes and extensions-Static and class methods-Super built in
function-Class Gotchas. Exception coding details: try/except/else statement-try/finally
statement-Unified try/except/finally-raise and asset statement. Exception Objects: Class
based exceptions-coding exception classes-need for exception hirerarchy-Built-in Exception
classes-Nested exception handlers and Idioms

192
XXXI Academic Council Meeting

SASTRA University

UNIT IV 15 Periods
Introduction to Django: MVC Design pattern-History of Django. The Django Template
System: Basics-Use-Basic template tags and filters-Limitations-Using Templates in views-
Template loading and inheritance. Interacting with a Database: MTV Development pattern-
Configuring the database-Defining models in Python-Installing the model-Basic data access-
Adding String Representations-Inserting and updating data-Selecting and deleting objects-
Making changes to a Database Schema. Django Administration Site: Activating the Admin
Interface-Using Admin Interface-Customizing Admin Interface. Form Processing: Creating a
feedback form-Processing the submission-Cross Validation-Customization-Creating forms from
Models.

TEXT BOOKS

1. Mark Lutz, Learning Python, 5th Edition, OReily Media, 2013. (Unit I, II and III)

2. Adrian Holovoty, Jacob Kaplan-Moss, The Definitive Guide to Django: Web Development
Done Right, Second Edition, Apress, 2009. (Unit IV).

REFERENCES

1. Zed A. Shaw, LEARN PYTHON THE HARD WAY, Addision-Wesley, 2014.


2. Mark Summerfield, Programming in Python 3, Second Edition, Pearson Education, 2010.
3. Allen Downey, Think Python-How to think like a Computer Scientist-version 2.0.17, Green
Tea Press, 2012.

LEARNING OUTCOMES

The learner will be able to

UNIT- I Memorize the syntax of basic Datatypes, List, Dictionaries, Tuples, Files,
operators, branching and looping constructs. Select an appropriate data type and
programming construct to solve the given problem
UNIT - II Illustrate modules, basic and advanced functions
UNIT - III Demonstrate the use of class and exception handling. Also demonstrate operator
overloading
UNIT- IV Develop web applications using Django web framework

193

You might also like