RDL Course Syllabus New
RDL Course Syllabus New
CO1 :: define the installation of python environment and basics of Python language
CO2 :: apply the condition and iteration statements for evaluating the appropriate alternates
CO3 :: apply to formulate Regular Expressions and use them for Pattern Matching
CO4 :: construct the core data structures like lists, dictionaries, tuples and sets in Python to
store, process and sort the data
Unit I
Setting up your Programming Environment : Python versions, Python on windows, running a
‘Hello World’ program
Variables, Expression and Statements: : Naming and using variables, Avoiding Name Error when
using variables, Values and types, variables, variables name and keywords, statements, operators
and operand, order of operations, operations on string, composition and comments
Unit II
Conditional statements : modulus operator, Random numbers, Boolean expressions, logic
operators, conditional, nested conditionals
Iterative statements : while statements, for loop statement, Nested for, Nested while, Random
numbers in loops, encapsulation and generalization
Unit III
Functions and recursion : function calls, type conversion and coercion, math functions, adding new
function, parameters and argument, recursion and its use
Unit IV
String : string a compound data type, length, string traversal, string slices, comparision, find
function, looping and counting
Lists : list values, length, membership, operations, slices, deletion, accessing elements, list and for
loops, list parameters and nested list
Tuples and Dictionaries : mutability and tuples, tuple assignment, tuple as return values,
dictionaries operations and methods, sparse matrices, aliasing and coping
Unit V
Classes and objects : Creating classes, creating instance objects, accessing attributes
Object oriented programming terminology : Class Inheritance, Overriding Methods, Data Hiding,
Function Overloading
Unit VI
Files and Exceptions : text files, writing variables, Reading from a file, writing to a file, directories,
pickling, handling the zero Division error exception, using try-except blocks, The else block, Handling
the File Not found error exception
Regular Expressions : Concept of regular expression, various types of regular expressions, using
match function, Web Scraping by using Regular Expressions
List of Practical's
• 1. Program to enter two numbers and print the arithmetic operations like +,-,*, /, // and%.
• 6.Write a Program to enter the string and to check if it’s palindrome or not using loop.
• 9.Remove all the lines that contain the character “a” in a file and write it into another file.
• 14.Take a sample of ten phishing e-mails (any text file) and find most common
• 15.Read a text file line by line and display each word separated by a #
Text Books:
1. FUNDAMENTALS OF PYTHON –FIRST PROGRAM by KENNETH A. LAMBERT, CENGAGE
LEARNING
References:
1. PYTHON PROGRAMMING: USING PROBLEM SOLVING APPROACH by REEMA THAREJA,
OXFORD UNIVERSITY PRESS