Lecture - 01 Introduction To Python
Lecture - 01 Introduction To Python
Python goals
In 1999, Guido van Rossum defined his goals for Python:
Information Processing
Running Python
➢ Typical Python implementations offer both an interpreter and
compiler
③ Python shell window (interactive interpreter) with colorizing of code input, output, and error messages
④ multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto-
completion, and other features
⑤ search within any window, replace within editor windows and search through multiple files (grep)
⑥ debugger with persistent breakpoints, stepping, and viewing of global and local namespaces
Flowchart
A flowchart is a graphical representation of the operations involved in a data processing system.
❖ Symbols are used to represent particular operations or data.
❖ Flow lines indicate the sequence of operations (Top to down sequence).
Oval
parallelogram
Rectangle
Dimond
Problem(1): Find the total of two numbers
(ii) Algorithm
Writing a logical step-by-step method to solve the problem is called the Algorithm. In other words, an
algorithm is a procedure for solving problems. In order to solve a mathematical or computer problem,
this is the first step in the process.
SL Algorithm Flowchart
1 It is a procedure for solving problems. [Definition] It is a graphic representation of a process. [Definition]
2 The process is shown in step-by-step instruction. The process is shown in block-by-block information
diagram.
3 It is complex and difficult to understand. It is intuitive and easy to understand.
7 It costs more time to create an algorithm. It costs less time to create a flowchart.
(iii) Coding
Coding is basically the computer language used to develop apps, websites, and software. Without it,
we’d have none of the most popular technology we’ve come to rely on such as facebook, our
smartphones, the browser we choose to view our favorite blogs, or even the blogs themselves. It all runs
on code.
Since the 1970s, computer experts have created more than 700 different programming languages. Each
language has a unique way of helping computers process huge amounts of information. Every coding
language has different features and terms with some overlap. New coders shouldn’t be something by
the plethora of programming types though. There are only about a dozen programming languages that
are commonly used. These include C, C++, C#, Java, Python, Ruby, Swift, PHP, HTML, SQL, Cobol,
Visual Basic, Scripting and Perl, etc. Let’s look at some of the major coding languages about which
beginners should know. # This program adds two numbers
num1 = 1.5
Example of coding in Python num2 = 6.3
# Add two numbers
sum = num1 + num2
# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Why did you decide to use Python as the programming language? (1)
Many people consider Python to be
the best language to teach Adding Program in C++
beginners how to program.
The formula,
speed = distance/time
is used to process the distance traveled and the time passed away in order to determine the speed. That
is,
speed = 50 miles/2 hours
= 25 miles per hour
Basic Concepts of Programming Development Life Cycle [PDLC]
Many programmers plan their programs using a sequence of steps, referred to as the Software
Development Life Cycle. Programmer are use commonly 5 following step-by-step process will solve
there problem. The following steps are given below:
(1) Analyze: Define the problem.
Be sure you understand what the program should do—that is, what the output should be. Have a clear
idea of what data (or input) are given and the relationship between the input and the desired output.
(2) Design: Plan the solution to the problem.
Find a logical sequence of precise steps that solve the problem. Such a sequence of steps is called an
algorithm or Flowchart.
(3) Code: Translate the algorithm into a programming language.
Coding is the technical word for writing the program. Programmer will decided which programming
they will select based on problem domain.
(4) Test and Correct: Locate and remove any errors in the program.
Testing is the process of finding errors in a program. (An error in a program is called a bug and testing
and correcting is often referred to as debugging.)
(5) Complete the Documentation: Organize all the material that describes the program.
Documentation is intended to allow another person, or the programmer at a later date, to understand
the program.
Assignment-01 [Due Date: 2022.09.18 @ 11.50 PM]
Thank You!!!
na@kduniv.ac.kr // uzzalnp@gmail.com
https://sites.google.com/view/nur-alam-md/home
https://www.facebook.com/nur.alam.9674227
010-3191-5031 / 033-639-0167
bsc.kdu.global@gmail.com
Artificial Intelligence and Computer Vision Lab