Learn Python in 10 minutes: The only book you need to master Python. Python 3 for beginners with practical examples by Victor Ebai

Learn Python in 10 minutes: The only book you need to master Python. Python 3 for beginners with practical examples by Victor Ebai

Author:Victor Ebai [Ebai, Victor]
Language: eng
Format: azw3
Published: 2017-05-08T04:00:00+00:00


Conditional Control Statements (if-then-else)

Conditional Control Statements are used to implement automatic decision making in programs. The decisions are based on the validity of mutually exclusive test conditions. Only a single test condition can be true in a flow control conditional statement. Once a true condition is encountered, its suite of statements is executed. All the other statements are ignored. Following is an example of a simple if statement with a single test condition.

1 x = 10

2 y = 3

3 if x > y:

4 print("X is greater than y")



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.