News Ticker

Menu

If-Else Statement In Python



The if-else statement is used in Python for decision making process. Anyway , the decision making is required when we would like to execute a result only if a excact condition is completed.

Else statement can also be combined with if statement. An else statement contains the block of code that executes if the conditional expression in the if statement resolves to 0 or a FALSE value.

The else statement is an optional statement and there could be at most only one else statement following if .


Share This:

Uncle Noobee

Uncle Noobee - Editor of Noobsquare.com , loves science and technology specially internet. Sees internet as the largest university with millions of students. Every students have rights to learn their own subject and to master it.

No Comment to " If-Else Statement In Python "

  • To add an Emoticons Show Icons
  • To add code Use [pre]code here[/pre]
  • To add an Image Use [img]IMAGE-URL-HERE[/img]
  • To add Youtube video just paste a video link like http://www.youtube.com/watch?v=0x_gnfpL3RM