Codesters FAQ is the official FAQ site for codesters.com. We will continue to update this blog with the most common questions we receive form teachers using Codesters.

Displaying Variables

Use the Variable Display block to display the value of a variable on the stage.  This will create a box on the stage with the variable name and it's value.  

Data Variable Display
my_var = 25
my_display = codesters.Display(my_var, -200, 150)
display.png
  • Define the location on the stage with the x , y coordinates after the variable name.  
  • To reposition the display simply repeat the display block with the new x, y coordinates. 
  • If the value of the variable changes, then the display needs to be updated. See Updating Variable Display