Software Carpentry

Cherry Picking Example

Small cell cherry picking example.

Hints are available at the end of this document.

Exercise: Change b so the following code returns True.


In [2]:
a = 5
b = 2

a * b == 15


Out[2]:
False

Correct Answer


In [3]:
a = 5
b = 3

a * b == 15


Out[3]:
True

Hints Change the number 2 to a different number.


In [ ]: