Cooperative Learning Question

Subject: Structured programming

On a piece of paper, write your NAME, SECTION and DATE.

  1. "Given the same instructions and the same data, you get the same results". This is to be ______________________________. (NOT "predictable")
    ANSWER: deterministic
  2. Write a statement which generates an integer between 6 and 50, inclusive. It stores it in a variable called my_rand.
    ANSWER: my_rand = randint(6,50) OR my_rand = randrange(6,51)

Talk to your neighbor about your answer.

Turn in for attendance.