9. If else

9.4 Exercise - if else condition

In this exercise if sports is basketball then print “You like basketball”. Otherwise print “You do not like basketball”.

Now change sports to cricket and then execute the code. Notice that this time else condition message will be printed.