What are Variables?

Variables are like containers. We can give a variable a name and use it to store, read, or change data. Variables are frequently used in programming.

Creating Variables

To create a variable, click the "Create variable" option, enter the name of the variable, and click OK to create.

Using Variables

For example: Initialize a variable A=6, and after one second, add 2 to the variable.



Math contains basic operation blocks like "addition, subtraction, multiplication, division, and exponentiation."

Constant Enter any number, then connect it to other objects for assignment.

Common operation Add data on both sides of the formula for operations like addition, subtraction, multiplication, division, and exponentiation.

Surplus Add data on both sides of the formula for modulo operation.

Special number judgment Add a value and set a condition (e.g., checking if it is odd, even, or a prime number). True if it meets the condition, otherwise False.

Array calculation Perform calculations like sum, maximum, minimum, average on an array.

round Round decimals up or down.

advance operation Perform operations like trigonometric functions and absolute value.

Convert to int Convert a value to an integer.

Convert to float Convert a value to a floating point number.

How to Use

Add data on both sides of the operation, assign the operation to a variable or another object to get the result.



Random elements are sometimes needed when making games or animations. Random can generate random numbers as required.

random fraction Generates a random number between 0 and 1 each time it is executed.

random integer Specifies a random range, generates a random integer within the range each time it is executed.

How to Use

Set the random range with a constant, assign the random integer to a variable.



A dictionary is a mutable container that can store variables of any type.

creat map Create key-value pairs.

map clear Clear the dictionary.

map contain key Returns whether a key exists.

get key in map Returns the value of a key.

in map add key value Add key-value pairs to the dictionary.

in map set key value Set key-value pairs in the dictionary.

in map delete key Delete a specified key.

How to Use

Create a dictionary, add key-value pairs.



If a variable is a container, then an array is a collection of containers. We can assign or retrieve any variable in the array.

length of Measure the length of an array (i.e., the number of elements in the array).

X is empty Determines whether an array is empty. True if yes, otherwise False.

in list find Array indexing, find a specified element in order or reverse order.

create empty list Create an empty list.

create list with Customize an array.

in list get Get the value of a specific index in the array.

in list get sub-list from Capture elements from the array to form a new array.

icreat list with item repeated times Create an array filled with an element repeated a certain number of times.

reverse Reverse the order of the array.

in list set as Set a specific index in the array to a specified value.

make list from text with delimiter Create an array from text using a delimiter.

How to Use

Add a "create list" to create an array, add some elements to the array, and call it through iteration or other means.


Feature Description

JSON is a lightweight data interchange format that facilitates data transfer and reading.

dumps to json Encodes a Python object into JSON format.

loads json Decodes a JSON string back into a Python object.


Creating a dictionary and converting it into JSON format.


Feature Description

Performs related text processing or displays strings.

" " Creates text content.

to UPPER CASE Converts text content to upper or lower case.

in text get letter# Extracts specified content from the text.

count in Returns the number of times a specified character appears in the text.

is empty Returns whether the text is empty.

length of Returns the length of the text.

print Prints text.

replace with in Replaces content within the text.

trim spaces from both sides Removes spaces from both sides of the string.

Convert to str Converts other formats to string.

" "+ Concatenates text.

decode Decodes a string into a specified format.

encode Encodes a string into a specified format.

Reduce to decimal places Specifies the number of decimal places.


On This Page