0% found this document useful (0 votes)
10 views2 pages

Python Programming - Syllabus

Create a documention
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
10 views2 pages

Python Programming - Syllabus

Create a documention
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

PYTHON PROGRAMMING

UNIT I:

Identifiers – Keywords - Statements and Expressions – Variables – Operators – Arithmetic


operators – Assignment operators – Comparison operators – Logical operators – Bitwise
operators - Precedence and Associativity – Data types - Number – Booleans – Strings -
Indentation – Comments – Single line comment – Multiline comments - Reading Input – Print
Output – Type Conversions – int function – float function – str() function – chr() function –
complex() function – ord() function – hex() function – oct() function - type() function and Is
operator – Dynamic and Strongly typed language.

UNIT II:

Control Flow Statements – If statement – If else statement – If elif else statement – nested if
statement - while loop – for loop – continue and break statements – catching exceptions using
try and except statement – syntax errors – exceptions – exception handling – Strings – str()
function - Basic string operations – String comparison – Built in functions using strings –
Accessing characters in string – String slicing – String joining – split() method – string
traversing.

UNIT III:

Functions – Built in functions – function definition and calling - return statement – void
function – scope and lifetime of variables – args and kwargs – command line arguments -
Tuples – creation – basic tuple operations – tuple() function – indexing – slicing – built-in
functions used on tuples – tuple methods – packing – unpacking – traversing of tuples –
populating tuples – zip() function - Sets – Traversing of sets – set methods – frozenset.
UNIT IV:

Lists: Using List- List Assignment and Equivalence – List Bounds- Slicing - Lists and Functions-
Prime Generation with a List. List Processing: Sorting-Flexible Sorting- Search- List
Permutations- Randomly Permuting a List- Reversing a List.

UNIT V:

Objects: Using Objects- String Objects- List Objects. Custom Types: Geometric Points-
Methods- Custom Type Examples- Class Inheritance. Handling Exceptions: Motivation-
Exception Examples- Using Exceptions - Custom Exceptions.

TEXT BOOKS:

1. Gowrishankar S, Veena A, “Introduction to Python programming”, 1st Edition, CRC


Press/Taylor & Francis, 2008. (Units 1-3)
2. Learn to Program with Python, 3th Edition, Richard L. Halterman, Southern Adventist
University. (Units 4-5)
REFERENCE BOOKS:

1. Core Python Programming, 2thEdition, Wesley J. Chun, Prentice Hall.


2. Jake VanderPlas, “Python Data Science Handbook: Essential Tools for working with
Data”, 1st edition, O’Reilly Media, 2016.

PYTHON PROGRAMMING LAB

1. Write a Python program to find the area and perimeter of a circle.


2. Write a Python program to generate Fibonacci series.
3. Write a Python program to compute the GCD of two numbers.
4. Write a Python program to generate first n prime numbers.
5. Write a Python program to find the sum of squares of n natural numbers.
6. Write a Python program to find the sum of the elements in an array.
7. Write a Python program to find the largest element in the array.
8. Write a Python program to check if the given string is a palindrome or not.
9. Write a Python program to store strings in a list and print them.
10.Write a Python program to find the length of a list, reverse it, copy it and then clear it.

You might also like