|
|
|
|
|
by aaren
4525 days ago
|
|
Use the else to let you know that something is going wrong, using raise or exit() or some die() function: if something:
do_this()
elif something_else:
do_that()
else:
# hope we don't end up here
raise UserWarning('We shouldn't have ended up here')
|
|