JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

CS702OE: PYTHON PROGRAMMING

B.Tech IV Year I Semester (R18)

Course Objectives

This course will enable students to

  • Learn Syntax and Semantics and create Functions in Python.
  • Handle Strings and Files in Python.
  • Understand Lists, Dictionaries and Regular expressions in Python.
  • Implement Object Oriented Programming concepts in Python.
  • Build Web Services and introduction to Network and Database Programming in Python.

Course Outcomes

The students should be able to:

  • Examine Python syntax and semantics and be fluent in the use of Python flow control and functions.
  • Demonstrate proficiency in handling Strings and File Systems.
  • Create, run and manipulate Python Programs using core data structures like Lists, Dictionaries and use Regular Expressions.
  • Interpret the concepts of Object-Oriented Programming as used in Python.
  • Implement exemplary applications related to Network Programming, Web Services and Databases in Python.

UNIT - I

Python Basics, Objects- Python Objects, Standard Types, Other Built-in Types, Internal Types, Standard Type Operators, Standard Type Built-in Functions, Categorizing the Standard Types, Unsupported Types Numbers - Introduction to Numbers, Integers, Floating Point Real Numbers, Complex Numbers, Operators, Built-in Functions, Related Modules Sequences - Strings, Lists, and Tuples, Mapping and Set Types

UNIT - II

FILES: File Objects, File Built-in Function [ open() ], File Built-in Methods, File Built-in Attributes, Standard Files, Command-line Arguments, File System, File Execution, Persistent Storage Modules, Related Modules Exceptions: Exceptions in Python, Detecting and Handling Exceptions, Context Management, *Exceptions as Strings, Raising Exceptions, Assertions, Standard Exceptions, *Creating Exceptions, Why Exceptions (Now)?, Why Exceptions at All?, Exceptions and the sys Module, Related Modules Modules: Modules and Files, Namespaces, Importing Modules, Importing Module Attributes, Module Built-in Functions, Packages, Other Features of Modules

UNIT - III

Regular Expressions: Introduction, Special Symbols and Characters, Res and Python Multithreaded Programming: Introduction, Threads and Processes, Python, Threads, and the Global Interpreter Lock, Thread Module, Threading Module, Related Modules

UNIT - IV

GUI Programming: Introduction, Tkinter and Python Programming, Brief Tour of Other GUIs, Related Modules and Other GUIs WEB Programming: Introduction, Wed Surfing with Python, Creating Simple Web Clients, Advanced Web Clients, CGI-Helping Servers Process Client Data, Building CGI Application Advanced CGI, Web (HTTP) Servers

UNIT - V

Database Programming:

Introduction, Python Database Application Programmer’s Interface (DB-API), Object Relational Managers (ORMs), Related Modules

TEXT BOOK:

  • 1. Core Python Programming, Wesley J. Chun, Second Edition, Pearson.

Loading Question Papers

Fetching data from database...