Lecture notes for the Introduction to Computer Science I by James Tam | Return to the course web page |
Description |
Program name |
A program that inappropriately uses a series of successive if's when at most only one condition can be true. |
Inefficient.py |
A modified version of the previous program that illustrates the use of the if-elif-else construct |
Efficient.py |