CONDITIONAL STATEMENTS IN PYTHON
CONDITIONAL STATEMENTS IN PYTHON
Peter Larsson-Green J?nk?ping University Autumn 2018
CONDITIONAL STATEMENTS
Enter a number: 12 That is a positive number!
Enter a number: -12 That is a negative number!
BOOLEANS
? Used to represent something's correctness. ? Possible values: True and False. Examples
True True True False False False
RELATIONAL EXPRESSIONS
Syntax: How it is computed
1. Evaluate .
Examples
2. Evaluate .
3. Apply on the computed values.
3 < 5 3 < 5 3 < 5 3 < 5 True
3 > 5 3 > 5 3 > 5 3 > 5 False
3 == 2 3 == 2 3 == 2 3 == 2 False
3 != 2 3 != 2 3 != 2 3 != 2 True
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- conditional statements verilog
- conditional statements and equivalence
- conditional statements and equivalence quiz
- conditional statements venn diagram worksheet
- conditional statements quizlet
- multiple return statements in python function
- conditional statements in word
- multiple conditional statements in excel
- conditional statements and equivalence quizlet
- conditional statements examples
- conditional statements geometry definition
- conditional statements geometry pdf