Programming & Problem Solving through Python

Home ๐Ÿ‘‰ O level ๐Ÿ‘‰ Python

 


Programming & Problem Solving through Python (M3-R5.1)

Introduction

Python is an easy to learn, powerful programming language that combines the features of C and Java. 

( เคชाเคฏเคฅเคจ เคธीเค–เคจा เค†เคธाเคจ, เคถเค•्เคคिเคถाเคฒी เคช्เคฐोเค—्เคฐाเคฎिंเค— เคญाเคทा เคนै เคœो C เค”เคฐ JAVA เค•ी เคตिเคถेเคทเคคाเค“ं เค•ो เคœोเคก़เคคी เคนै। เคชाเคฏเคฅเคจ เค•ा เค‰เคชเคฏोเค— เค•เคฐเคจा เคธเคฐเคฒ เคนै। )

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.

(เคชाเคฏเคฅเคจ เคเค• เค‰เคš्เคš เคธ्เคคเคฐीเคฏ เคญाเคทा เคนै, เคœिเคธเค•ा เค…เคฐ्เคฅ เคนै เค•ि เคฏเคน เคฎเคถीเคจी เคญाเคทा เค•ी เคคुเคฒเคจा เคฎें เคฎाเคจเคต เคญाเคทा เค•े เค…เคงिเค• เค•เคฐीเคฌ เคนै। เค‡เคธเคธे เคชाเคฏเคฅเคจ เค•ोเคก เค•ो เคชเคข़เคจा เค”เคฐ เคฒिเค–เคจा เค†เคธाเคจ เคนो เคœाเคคा เคนै, เค”เคฐ เคฏเคน เค‡เคธे เค…เคงिเค• เคชोเคฐ्เคŸेเคฌเคฒ เคญी เคฌเคจाเคคा เคนै, เคœिเคธเค•ा เค…เคฐ्เคฅ เคนै เค•ि เค‡เคธे เคฆोเคฌाเคฐा เคฒिเค–े เคฌिเคจा เคตिเคญिเคจ्เคจ เคช्เคฐเค•ाเคฐ เค•े เค•ंเคช्เคฏूเคŸเคฐों เคชเคฐ เคšเคฒाเคฏा เคœा เคธเค•เคคा เคนै।)

Here are some of the benefits of using Python:

  • 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.
เคฏเคนां เคชाเคฏเคฅเคจ เค•ा เค‰เคชเคฏोเค— เค•เคฐเคจे เค•े เค•ुเค› เคฒाเคญ เคฆिเค เค—เค เคนैं:

  • เค‡เคธे เคธीเค–เคจा เค”เคฐ เค‰เคชเคฏोเค— เค•เคฐเคจा เค†เคธाเคจ เคนै।
  • เคฏเคน เคเค• เคธाเคฎाเคจ्เคฏ-เค‰เคฆ्เคฆेเคถ्เคฏ เคตाเคฒी เคญाเคทा เคนै, เคœिเคธเค•ा เค…เคฐ्เคฅ เคนै เค•ि เค‡เคธเค•ा เค‰เคชเคฏोเค— เคตिเคญिเคจ्เคจ เคช्เคฐเค•ाเคฐ เค•े เค•ाเคฐ्เคฏों เค•े เคฒिเค เค•िเคฏा เคœा เคธเค•เคคा เคนै।
  • เคฏเคน เคเค• เคธ्เคตเคคंเคค्เคฐ เค”เคฐ เคฎुเค•्เคค เคธ्เคฐोเคค เคญाเคทा เคนै।
  • เค‡เคธเค•ा เคเค• เคฌเคก़ा เค”เคฐ เคธเค•्เคฐिเคฏ เคธเคฎुเคฆाเคฏ เคนै।
  • เคฏเคน เคชोเคฐ्เคŸेเคฌเคฒ เคนै, เคœिเคธเค•ा เค…เคฐ्เคฅ เคนै เค•ि เค‡เคธे เคฆोเคฌाเคฐा เคฒिเค–े เคฌिเคจा เคตिเคญिเคจ्เคจ เคช्เคฐเค•ाเคฐ เค•े เค•ंเคช्เคฏूเคŸเคฐों เคชเคฐ เคšเคฒाเคฏा เคœा เคธเค•เคคा เคนै।
  • เคฏเคน เคเค• เคต्เคฏाเค–्เคฏा เค•ी เค—เคˆ เคญाเคทा เคนै, เคœो เคกिเคฌเค— เค”เคฐ เคธंเคถोเคงिเคค เค•เคฐเคจा เค†เคธाเคจ เคฌเคจाเคคी เคนै।

In this course we will learn basics of Python from scratch and this course is specially designed for 'O' level students. This tutorial covers all the topics of 'O' level syllabus with PDF and MCQs.

( เค‡เคธ เค•ोเคฐ्เคธ เคฎें เคนเคฎ เคถुเคฐुเค†เคค เคธे เคชाเค‡เคฅเคจ เค•े เคฌेเคธिเค•्เคธ เคธीเค–ेंเค—े เค”เคฐ เคฏเคน เค•ोเคฐ्เคธ เคตिเคถेเคท เคฐूเคช เคธे 'เค“' เคฒेเคตเคฒ เค•े เค›ाเคค्เคฐों เค•े เคฒिเค เคฌเคจाเคฏा เค—เคฏा เคนै। เคฏเคน เคŸ्เคฏूเคŸोเคฐिเคฏเคฒ PDF เค”เคฐ MCQ เค•े เคธाเคฅ 'เค“' เคธ्เคคเคฐ เค•े เคชाเค ्เคฏเค•्เคฐเคฎ เค•े เคธเคญी เคตिเคทเคฏों เค•ो เคถाเคฎिเคฒ เค•เคฐเคคा เคนै। )

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)



---END---

Comments