Python Decision-Making
Decision making is nothing but to evaluate 2 or more conditions and according to result give the output.
Syntax
if condition: statement 1 statement 2 else: statement 3
Example
if 2<3: print "it is not good" else: print "it is too good"
Output
it is not good
a = 20 if ( a == 20 ) : print "Value of expression is 20" else: print "Good bye!"
In the next chapter you are going to learn loops in python