This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '''Using the if else construct ''' | |
| def function_if_else(condtion_variable): | |
| if condtion_variable = -1: | |
| print "Variable is equal to minus 1" | |
| elif condtion_variable == 0: | |
| print "Variable is equal to 0" | |
| else condtion_variable =1: | |
| print "Variable is equal to 1" | |
| '''We can use dictionary ''' |
OlderNewer