If you are having trouble figuring out how to use the Python language to say what you mean,
I recommend looking at the
''CodingBat'' web site's Python warm-up exercises..
you might want to start with the "diff21" example,
starting by just getting it to work for numbers below 21 (you'll only pass some of the tests),
and then using the python word "if" to handle larger numbers too;
you can then move on to "sum_double",
beginning with cases involving two different numbers,
and then editing your program to work for two of the same number as well.
After that, you can work with True and False in Python using "sleep_in",
"near_hundred", "monkey_trouble", "parrot_trouble", or any of the other
parts of "warm-up 1" that don't involve text strings
(information in quotes rather than numbers and True/False).
If you need help, you may want to refer to the course notes rather than the
"help" elements of CodingBat, as their help assumes you'll be studying
the elements of Python in a different order.
You are welcome to look at the sample solutions for
diff21, near_hundred, monkey_trouble, parrot_trouble, and pos_neg,
as these are expressed using the parts of Python we've covered.
You do not have to create an account or log in on CodingBat
unless you want to have it record your progress;
if you would like to do that, note that the account is separate from your CS lab account
(and you may want to use a different password).
CodingBat is recommended for those who want help figuring out how to say things in Python,
but is not required for this course.