PYTHON

Syllabus of Programming and Problem Solving Through Python Language (M3-R5)

 



(i) Introduction to Programming

(ii) Algorithms and Flowcharts to Solve Problems

1.Flow Chart Symbols.

2.Basic algorithms/flowcharts for

 sequential processing.

3.Types of algorithms.

(iii) Introduction to Python

1. Python Introduction.

 2. Technical Strength of Python.

 3. Introduction to Python Interpreter and program execution.

 4. Using Comments.

 5. Literals.

 6. Constants.

 7. Identifiers and keywords.

8.Numbers (Integers, Floats, Complex Numbers, Real, Sets).

 9. Strings (Slicing, Indexing, Concatenation, other operations on Strings).

 10. Accepting input from Console.

 11. printing statements.

 12. Simple ‘Python’ programs. 

(iv) Operators, Expressions and Python Statements

1. Assignment statement.

 2. expressions.

3.  Arithmetic.

4. Relational.

5. Logical.

6. Bitwise operators and their precedence.

7. Conditional statements: if, if-else, if-elif-else; simple programs.

8. Notion of iterative computation and control flow –range function.

9. While Statement.

10. For loop.

11. break statement.

12. Continue Statement.

13. Pass statement.

14. else.

15. assert.

(v) Sequence Data Types

1. Lists,

2. tuples and dictionary, (Slicing, Indexing, Concatenation, other operations

 on Sequence datatype).

3. concept of mutability.

4. Examples to include finding the maximum, minimum, mean.

5. linear search on list/tuple of numbers, and counting the frequency of 

elements in a list using a dictionary.

(vi) Functions

1. Top-down approach of problem solving.

2. Modular programming and functions.

3. Function parameters,

4. Local variables. 

5. the Return statement.

6. DocStrings.

7. global statement. 

8. Default argument values. 

9. keyword arguments.

10. VarArgs parameters.

11. Library function-input(), eval(),print(), String Functions: count(),

 find(), rfind(), capitalize(), title(), lower(), upper(), swapcase(),

 islower(), isupper(), istitle(), replace(), strip(), lstrip(), rstrip(), 

aplit(), partition(), join(), isspace(), isalpha(), isdigit(), isalnum(), 

startswith(), endswith(), encode(), decode(), 

12. String: Slicing, Membership, Pattern Matching.

Numeric Functions: eval(), max(), min(), pow(), round(), int(), random(), ceil(),

floor(), sqrt(), Date & Time Functions, Recursion.

(vii) File Processing

1. Concept of Files.

2. File opening in various modes and closing of a file.

3. Reading from a file.

4. Writing onto a file.

5. File functions-open(), close(), read(), readline(), readlines()

write(), writelines(),tell(),seek(). 

6. Command Line arguments.

(viii) Scope and Modules

1. Scope of objects and Names.

2. LEGB Rule.

3. Module Basics.

4. Module Files as Namespaces.

5. Import Model.

6. Reloading Modules.

(ix) NumPy Basics

1. Introduction to NumPy.

2. ndarray.

3. datatypes.

4. array attributes.

5. array creation routines.

6. Array From Existing Data.

7. Array From Numerical Ranges.

8. Indexing & Slicing.