Professional Documents
Culture Documents
ECSE101L-Computational Thinking Using Python: Anirban Bhar (Anirban - Bhar@bennett - Edu.in)
ECSE101L-Computational Thinking Using Python: Anirban Bhar (Anirban - Bhar@bennett - Edu.in)
Python
Introduction
Anirban Bhar
(Anirban.Bhar@bennett.edu.in)
1 Algorithm
2 Flowchart
3 Programming Language
Algorithm
Algorithm
It is a finite number of clearly described, unambiguous
doable steps that can be systematically followed to produce a
desired result for given input in a finite amount of time.
Algorithm
It is a finite number of clearly described, unambiguous
doable steps that can be systematically followed to produce a
desired result for given input in a finite amount of time.
An algorithm that correctly solves a given problem must solve
the problem in a reasonable amount of time, otherwise it is of
limited practical use.
Flowchart
It is a diagrammatic representation of an algorithm.
Programming language:
Programming language:
High-level language: Example: C, C++, Java, Python, etc.
Programming language:
High-level language: Example: C, C++, Java, Python, etc.
Advantages: Easier to write, Portable.
Programming language:
High-level language: Example: C, C++, Java, Python, etc.
Advantages: Easier to write, Portable.
Low-level language: Sometimes referred to as machine
language or assembly language.
Programming language:
High-level language: Example: C, C++, Java, Python, etc.
Advantages: Easier to write, Portable.
Low-level language: Sometimes referred to as machine
language or assembly language.
Disadvantages: Not portable.
Program
A program is a sequence of instructions that specifies how to
perform a computation.
Debugging
Debugging
Programming errors are called bugs.
Debugging
Programming errors are called bugs.
The process of tracking them down and correcting them is
called debugging.
Debugging
Programming errors are called bugs.
The process of tracking them down and correcting them is
called debugging.
Three kinds of errors can occur in a program: syntax errors,
runtime errors and semantic errors.