Professional Documents
Culture Documents
Poster Modul Alpro
Poster Modul Alpro
CONDITIONING LOOPING
At the heart of every if statement is an expression that can be The looping statement is used to repeat the execution of statements
evaluated as True or False and is called a conditional test. Python repeatedly according to the desired iteration. In python, there are two
uses the values True and False to decide whether the code in an if kinds of loop:
statement should be executed. In Python to perform a condition
check, there are four kinds of statements. Among others: 1) While Loop statement
2) For Loop statement
1) IF STATEMENT
If statement is used for selecting where if the condition is true
then the program will execute the statement below. In python, for the
writing of conditioning and statements separated by a colon (:).
The general form of the if statement:
2) CONTINUE
4) NESTED-IF STATEMENT
REFERENSI
Matthes, E. (2015). Python Crash
Course . San Francisco: William
Pollock.