pIFthon

--Originally published at 101 For Tec

Check out the post I worked out with Merino

M E R I N O

If statement:

The If statement is a conditional statement and works like this. If a value is true then the instruction stop and the code continues, but if the value is false, the code read the next line on the IF.

loop_architecture.jpg

The syntaxis is like this:

if expression:
<body>
else:
<body>

Here is an example:

Captura de pantalla 2016-09-12 a la(s) 10.25.02.pngCaptura de pantalla 2016-09-12 a la(s) 10.25.28.png

For more details about IF and ELSE you can go to here and here. And also check this blog for more loops wohoo.

Ver la entrada original