Professional Documents
Culture Documents
Programming Structures (Sequential, Conditionals, Iteration)
Programming Structures (Sequential, Conditionals, Iteration)
Anaconda - Spyder
https://www.pythonanywhere.com/
To work interactively
with the program
To remember...
https://www.pythonanywhere.com/
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