Selection Statement ( if )
[Pages:10]The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Intro. To Computers (LNGG 1003)
Lab 4
Selection Statement ( if )
Eng. Ibraheem Lubbad
March 9, 2017
In this lab we will constructs program that allow statements to be optionally executed, depending on the selection execution.
Boolean Data Type and Operations:
The python values True and False are special inbuilt objects which is Boolean type. You can give variable the value directly or via Boolean expressions. Boolean expression: an expression that computes to True or false. It may contain relational (Comparison) operators and logical operators, the simplest Boolean expressions in Python are True and False.
Comparison Operators:
Operator
Description
==
Equal to
!=
Not equal to
Not equal to
>
Greater than
<
Less than
>=
Greater than or equal to
................
................
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
- if then statement to change cell color
- if statement based on cell color
- conditional formatting if statement color
- if statement to change cell color
- if then statement in excel
- excel if statement based on color
- excel if statement to change cell color
- conditional if statement excel
- if statement with multiple criteria
- if then statement conditional formatting
- count if statement in tableau
- tableau if statement multiple values