Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
131 views

PYTHON PROGRAMMING - Syllabus

The document discusses the basics of Python programming over 5 units - variables, data types, control statements, functions, error handling and object oriented features. It also includes example Python programs and references textbooks.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views

PYTHON PROGRAMMING - Syllabus

The document discusses the basics of Python programming over 5 units - variables, data types, control statements, functions, error handling and object oriented features. It also includes example Python programs and references textbooks.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

PYTHON PROGRAMMING

Unit I

BASICS : Python - Variables - Executing Python from the Command Line - Editing Python
Files - Python Reserved Words - Basic Syntax-Comments - Standard Data Types – Relational
Operators - Logical Operators - Bit Wise Operators - Simple Input and Output. (10 )

Unit II

CONTROL STATEMENTS: Control Flow and Syntax - Indenting - if Statement -


statements and expressions- string operations- Boolean Expressions -while Loop - break and
continue - for Loop. LISTS:List-list slices - list methods - list loop – mutability – aliasing -
cloning lists - list parameters. TUPLES:Tuple assignment, tuple as return value -Sets –
Dictionaries. (11)

Unit III

FUNCTIONS: Definition - Passing parameters to a Function - Built-in functions- Variable


Number of Arguments - Scope – Type conversion-Type coercion-Passing Functions to a
Function - Mapping Functions in a Dictionary – Lambda - Modules - Standard Modules – sys
– math – time - dir - help Function. (10)

Unit IV

ERROR HANDLING: Run Time Errors - Exception Model - Exception Hierarchy -


Handling Multiple Exceptions - Data Streams - Access Modes Writing - Data to a File
Reading - Data From a File - Additional File Methods - Using Pipes as Data Streams -
Handling IO Exceptions - Working with Directories.(11)

Unit V

OBJECT ORIENTED FEATURES: Classes Principles of Object Orientation - Creating


Classes - Instance Methods - File Organization - Special Methods - Class Variables –
Inheritance – Polymorphism - Type Identification - Simple Character Matches - Special
Characters - Character Classes – Quantifiers - Dot Character - Greedy Matches – Grouping -
Matching at Beginning or End - Match Objects – Substituting - Splitting a String - Compiling
Regular Expressions. (10)

TEXT BOOKS

1. Mark Summerfield. ―Programming in Python 3: A Complete introduction to the


PythonLanguage, Addison-Wesley Professional, 2009.

2. Martin C. Brown, ―PYTHON: The Complete Reference‖, McGraw-Hill, 2001.


REFERENCES

1. Allen B. Downey, ``Think Python: How to Think Like a Computer Scientist‘‘, 2nd edition,
Updated for Python 3, Shroff/O‘Reilly Publishers, 2016
2. Guido van Rossum and Fred L. Drake Jr, ―An Introduction to Python – Revised and
updated for Python 3.2, Network Theory Ltd., 2011.

3. Wesley J Chun, ―Core Python Applications Programming‖, Prentice Hall, 2012.


PYTHON PROGRAM LIST

1. Write a python program that displays the following information: Your name, Full address
Mobile number, College name, Course subjects.

2. Write a python program to find the largest three integers using if-else and conditional
operator.

3. Write a python program that asks the user to enter a series of positive numbers (The user
should enter a negative number to signal the end of the series) and the program should
display the numbers in order and their sum.

4. Write a python program to find the product of two matrices [A]mxp and [B]pxr

5. Write recursive functions for GCD of two integers.

6. Write recursive functions for the factorial of positive integer

7. Write recursive functions for Fibonacci Sequence up to given number n.

8. Write recursive functions to display prime number from 2 to n.

9. Write a python program that writes a series of random numbers to a file from 1 to n and
display.

10. Write a python program to sort a given sequence: String, List and Tuple.

11. Write a python program to make a simple calculator.

12. Write a python program for Linear Search.

13. Write a python program for Binary Search.

14. Write a python program to implement merge sort.

15. Write a python program to find the sum of array of numbers.

16. Write a python program to find the distance between two points.

17. Write a python program for Inheritance.

18. Write a python program to slice a given list.

19. Write a python program to count the number of words.

20. Write a python program to copy a file.

21. Write a python program to check the given password is correct or not.

You might also like