Generated Figures (Topic 2) in Module 4 – BlitzGrok Platform Tour (DEMO)

How to get started

Log in Select Course/Program Enroll Learn Get certificate
Topic
Generated Figures

Generated Figures

Some questions carry a model: the path of a small Python function that receives the question's variables and returns an SVG. The figure therefore matches the numbers in every randomised attempt.

Three built-in generators are used below:

  1. polygon draws a shape with a random number of sides.
  2. array2d draws a grid of dots for multiplication.
  3. line_ruler_measurement draws a line against a ruler for measuring.

Try each question several times.

Sign in to join the discussion.
Recent posts
No posts yet.
Topic

Generated Figures

A question can name a Python generator; the figure is drawn fresh from the question's random variables on every attempt.

Generated Figures

Some questions carry a model: the path of a small Python function that receives the question's variables and returns an SVG. The figure therefore matches the numbers in every randomised attempt.

Three built-in generators are used below:

  1. polygon draws a shape with a random number of sides.
  2. array2d draws a grid of dots for multiplication.
  3. line_ruler_measurement draws a line against a ruler for measuring.

Try each question several times.

Sign in to join the discussion.
Recent posts
No posts yet.