Use of “else” conditional

--Originally published at Luis Santana's Blog

Now in this post I will be talking about “else” conditionals. This is also very similar in context to English language, in order to use this conditional you must have an “if” conditional first, otherwise your code won’t work (probably), as you may have noticed I just used a kind of coding in real life (if you want to use else you must use if first, else it wont work hehe).

By definition, an else condition contains the block of code that executes if the conditional expression in the if statement resolves to 0 or a FALSE value.

if_else_statement

Here you can see an example, and a link that I found really useful

else

http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ifstatements.html