Python for Everybody (py4e.com)
These are the lectures to supplement the textbook 'Python for Everybody: Exploring Information' and its associated web site py4e.com
Python for Everybody (py4e.com)
3.1 If-Then-Else
•
Dr. Charles Russell Severance
Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.
The most basic conditional structure is the if statement where we either execute or skip a segment of code based on the results of a logical expression (i.e. asking a question).