Control flow of Program
St Algorithm
St
St def L
St Procedure Function
defma.tn
testopy
Entry Point Function
Co routine 7 Subroutine Procedure function
method
12 3 4 56 7 8 9 10 17 12 13 14 151617181920
Indentation Levels
I tab 4 spaces
I LO
IL R 4 Rtl
4 0 1 1
34 y
IL 2 4 2 1
J L2 y
y g
313
test pl
ILI
I
I
etc
Control flow of Python Program
When
any Python source file is given for execution
to Python then Python is under obligation to execute
all statements written at IL 0 in the order
they
appear in the source code
n
M
10
20 Debugging
re mtn
printer r
Enron
x
Source
y
Etan
Exe
HE Runtime Emm
Name Error
Afore Type Error
Compile Time Error
Location
NO CTE t NO RTE Correct Program
Source
Program Specification program executing
goat
11 CTE RTE location
21 No CTE No RTE but Program execution
specification I Logical Emu
Bug
Debugger Debugging
Iptracey
100 I
Debugger
App
Stan
Process T
Chapter 11
II
Tracing
scalp I 1000 technological I
execution of stints is
only seq limiting
Conditional Execution
Str n input Enter n
n int Str n
print n is negative
non
h is negative
print
Program writing Data Actual value
are not known oftentimes
had Yet you must be able to
write logic algorithms
on data variable
N 100 Conditional execution
M 50 LB
if n m I
Indirect Access
toooo
to
one
if
10000
10 00
int ne is 1
int p n
164g
13 500
me xp
CUZ YD S
x2 24 Y 2 y 0.5
na no 2 YE SI 2 O 5
Diveintopython
Infra htmodule
TEENY
hello PT
Python exe
Learning Python 120019999g
IIaem.my
J
jyspeciticating Chapter
2
The class file