Class 25 — Wednesday October 21

Module implementation and usage

Practice makes perfect — Is more than a platitude — Take it to your heart


Look both ways


Agenda


Buddying


Slides


Reddit video


Downloads



To do


Module uva: freestyling


Module primal: to be submitted to document your participation

  • The % is the Python remainder operator.
  • Determine remainder of x divided by y
  • By looking at the remainder we can tell whether to return True or False

  • Could is_factor() help?
  • What are the possible range of values do we need check for being possible factors of x.
  • Does the function need a loop?

  • Could is_prime() help?
  • Could is_factor() help?
  • Do we need both of them?
  • Does the function need a loop?


cel from primal cartoon


Slide show

 


  © 2020 Jim Cohoon   Resources from previous semesters are available.