You are on page 1of 7

Programming structures in

a high level language -


Python

(Sequential, conditionals and iteration


structures)
To remember...

Anaconda - Spyder

In this area you


can look for the
info or a
command and
check some
This is the variables.
code editor,
where you
can write This space is
the code called the
and save it console, where
in a file you test your
programs or
write
instructions
interactively
To remember...

https://www.pythonanywhere.com/

To work interactively
with the program
To remember...

https://www.pythonanywhere.com/

To access the path


where you will put the
file
Sequential structures

Design an algorithm that given the width and height of a rectangle, calculates the area and the
perimeter.
Conditional structures – Basic ones
To remember...
Comparison operators Logical operators

Python Meaning
and TRUE if all the conditions are true
or TRUE if at least one of the condition is
true
not negates an expression
Conditional structures – Basic ones

Design an algorithm that given a number finds out if the number is even or odd.

Arithmetic operators

You might also like