- For example, here is a conditional in Python:
if ( x<2 ):
- print "This is fun."
else:
- print "I love CS."
- Students sometimes think that if x=1, the computer will print "This is fun." then continue to ELSE and print "I love CS."
if ( x<2 ):
print "This is fun."
else:
print "I love CS."