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 download
- python conditional statements
- computer science 1000 part 7 programming in python p l
- unit 3 boolean expressions if statements python tutorial
- programming for gcse topic 3 1 if statements in python
- python if else rxjs ggplot2 python data persistence
- conditional and iterative statements
- conditional statements in python
- python selection if else basic selection statement
- python iterative statements
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