Rules for If-Statements
if-statement must have an
2. If this
else should never be run because it doesn’t make sense, then you must use a
die function in the
else that prints out an error message and dies, just like we did in the last exercise. This will find many errors.
3. Never nest
if-statements more than two deep and always try to do them one deep. This means if you put an
if in an
if, then you should be ...
- Exercise 36. Designing and Debugging
- from Learn Python the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code, Third Edition, ...
- Publisher: Addison-Wesley Professional
- Released: October 2013
Rules for If-Statments
Share this highlighthttp://www.safaribooksonline.com/a/learn-python-the/1024/