You are on page 1of 24

1.

2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.



1. Add water until the line. 2. Add the egg 3. Microwave for 5 minutes
4. Remove egg from container
1.
2.
3.
4.
5.
- -

- - start

- start/end
x, y
1.
2. input/output
3. sum = x + y
4. process

decision
sum
flow direction
end




1.



2.



Many modern languages use
both processes.

Source
code

Compiler

Byte
code

● Interpreter
(virtual machine)

Output

Python uses both but
because of the way
programmers interact with it,
it is usually considered an
interpreted language.
1.
2.
3.
Run Button

Command Line Interface

Onine Interpreter

"Hello, world" program by Brian Kernighan (1978)




1.
2.
3.

print “hello, world”


print hello, world







>>> 10 + 4 / 2

>>> ( 10 + 4 ) / 2



Programming languages are formal languages that have been designed


to express computations.

Formal Language Natural Language


Ambiguity nearly or completely full of ambiguity
unambiguous
Redundancy less redundant; concise lots of redundancy; verbose
Literalness mean exactly what they full of idiom and metaphor
say



1.

2.

3.

You might also like