Omniadisce

Computational physics 1.5: Powers and brackets

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.

14 steps · about 20 min

By the end you can

  • Say in which order Python works out a sum with +, *, / and **
  • Use brackets to change the order: (t1 + t2) / 2
  • Write a power with **, not ^
  • Write s = ½gt² as a line of code

Who it is for: Anyone who has done lesson 1.4.

The steps

  1. A first guess
  2. Times before plus
  3. Which comes first?
  4. Brackets for a mean
  5. With and without brackets
  6. Average speed over a trip
  7. Powers: **
  8. Squaring
  9. Run a square
  10. Powers come before *
  11. Work it out
  12. Fix the free fall
  13. Your turn: a rolling ball
  14. In your own words

Discussion 0 comments

Log in to join the discussion.

× Enlarged view