Programming & Problem Solving through Python (M3-R5.1)
Introduction
Python is a high-level language, which means that it is closer to human language than machine language. This makes it easier to read and write Python code, and it also makes it more portable, meaning that it can be run on different types of computers without having to be rewritten.
- It is easy to learn and use.
- It is a general-purpose language, meaning that it can be used for a wide variety of tasks.
- It is a free and open-source language.
- It has a large and active community.
- It is portable, meaning that it can be run on different types of computers without having to be rewritten.
- It is an interpreted language, which makes it easy to debug and modify.
- рдЗрд╕реЗ рд╕реАрдЦрдирд╛ рдФрд░ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рдЖрд╕рд╛рди рд╣реИред
- рдпрд╣ рдПрдХ рд╕рд╛рдорд╛рдиреНрдп-рдЙрджреНрджреЗрд╢реНрдп рд╡рд╛рд▓реА рднрд╛рд╖рд╛ рд╣реИ, рдЬрд┐рд╕рдХрд╛ рдЕрд░реНрде рд╣реИ рдХрд┐ рдЗрд╕рдХрд╛ рдЙрдкрдпреЛрдЧ рд╡рд┐рднрд┐рдиреНрди рдкреНрд░рдХрд╛рд░ рдХреЗ рдХрд╛рд░реНрдпреЛрдВ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред
- рдпрд╣ рдПрдХ рд╕реНрд╡рддрдВрддреНрд░ рдФрд░ рдореБрдХреНрдд рд╕реНрд░реЛрдд рднрд╛рд╖рд╛ рд╣реИред
- рдЗрд╕рдХрд╛ рдПрдХ рдмрдбрд╝рд╛ рдФрд░ рд╕рдХреНрд░рд┐рдп рд╕рдореБрджрд╛рдп рд╣реИред
- рдпрд╣ рдкреЛрд░реНрдЯреЗрдмрд▓ рд╣реИ, рдЬрд┐рд╕рдХрд╛ рдЕрд░реНрде рд╣реИ рдХрд┐ рдЗрд╕реЗ рджреЛрдмрд╛рд░рд╛ рд▓рд┐рдЦреЗ рдмрд┐рдирд╛ рд╡рд┐рднрд┐рдиреНрди рдкреНрд░рдХрд╛рд░ рдХреЗ рдХрдВрдкреНрдпреВрдЯрд░реЛрдВ рдкрд░ рдЪрд▓рд╛рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред
- рдпрд╣ рдПрдХ рд╡реНрдпрд╛рдЦреНрдпрд╛ рдХреА рдЧрдИ рднрд╛рд╖рд╛ рд╣реИ, рдЬреЛ рдбрд┐рдмрдЧ рдФрд░ рд╕рдВрд╢реЛрдзрд┐рдд рдХрд░рдирд╛ рдЖрд╕рд╛рди рдмрдирд╛рддреА рд╣реИред
Course Contents
Unit 1: Introduction to Programming
(The basic Model of computation, algorithms, flowcharts, Programming Languages, compilation, testing & debugging and documentation.)
Unit 2: Algorithms & Flowcharts to Solve Problems
(Flow Chart Symbols, Basic algorithms/flowcharts for sequential processing, decision based processing and iterative processing. Some examples like: Exchanging values of two variables, summation of a set of numbers, Decimal Base to Binary Base conversion, Reversing digits of an integer, GCD (Greatest Common Divisor) of two numbers, Test whether a number is prime, factorial computation, Fibonacci sequence, Evaluate тАШsin xтАЩ as sum of a series, Reverse order of elements of an array, Find largest number in an array, Print elements of upper triangular matrix, etc.)
Unit 3: Introduction to Python
Python Introduction, Technical Strength of Python, Introduction to Python Interpreter and program execution, Using Comments, Literals, Constants, PythonтАЩs Built-in Data types, Numbers (Integers, Floats, Complex Numbers, Real, Sets), Strings (Slicing, Indexing, Concatenation, other operations on Strings), Accepting input from Console, printing statements, Simple тАШPythonтАЩ programs.
Unit 4: Operators, Expressions and Python Statements
(Assignment statement, expressions, Arithmetic, Relational, Logical, Bitwise operators and their precedence, Conditional statements: if, if-else, if-elif-else; simple programs, Notion of iterative computation and control flow тАУrange function, While Statement, For loop, break statement, Continue Statement, Pass statement, else, assert)
Unit 5: Sequence Data Types
(Lists, tuples and dictionary, (Slicing, Indexing, Concatenation, other operations on Sequence datatype),concept of mutability, Examples to include finding the maximum, minimum, mean; linear search on list/tuple of numbers, and counting the frequency of elements in a list using a dictionary.)
Unit 6: Functions
(Top-down approach of problem solving, Modular programming and functions, Function parameters, Local variables, the Return statement, DocStrings, global statement, Default argument values, keyword arguments, VarArgs parameters. Library function-input(), eval(),print(), String Functions: count(), find() etc. String: Slicing, Membership, Pattern Matching, Numeric Functions: eval(), max(), min(), pow(), round(), int(), random(), ceil(), floor(), sqrt(), Date & Time Functions, Recursion.)
Unit 7: File Processing
Concept of Files, File opening in various modes and closing of a file, Reading from a file, Writing onto a file, File functions-open(), close(), read(), readline(), readlines(),write(), writelines(),tell(),seek(), Command Line arguments.
Unit 8: Scope and Modules
(Scope of objects and Names, LEGB Rule Module Basics, Module Files as Namespaces, Import Model, Reloading Modules.)
Unit 9: NumPy Basics
(Introduction to NumPy, ndarray, datatypes, array attributes, array creation routines, Array From Existing Data, Array From Numerical Ranges, Indexing & Slicing)
Comments
Post a Comment