Omniadisce

Computational physics 2.1: True or false?

Lesson Beginner

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

13 steps ยท about 15 min

By the end you can

  • Ask whether one number is greater or less than another, with > and <
  • Use >= and <= for โ€œat leastโ€ and โ€œat mostโ€
  • Tell == (are they equal?) from = (store a value)
  • Use != for โ€œnot equalโ€
  • Read True and False in a program's output

Who it is for: After unit 1: you can print, do sums and store numbers in variables.

The steps

  1. A first question
  2. A comparison is a question
  3. Less than
  4. Comparing variables
  5. Over the limit?
  6. At least, at most
  7. Exactly at the limit
  8. Is it equal? Two equals signs
  9. Which one asks?
  10. Not equal
  11. Six comparisons
  12. Faster than a car?
  13. In your own words

Discussion 0 comments

Log in to join the discussion.

× Enlarged view