Numerical Input

Overview

The numerical input @input number is used to override a variable's value with a custom floating point input

Usage

a = 3
# @input number data=a

# If this is run in Artemis, this will print the number entered
# If this is run without Artemis, this will print 3
print(a)

Named Arguments

None

Examples

Example 1: Using @input anchor to collect numerical input and then output the square of it using an evaluated expression in @doc

# @input number data=a

# @doc You entered <<a * a>>
661661

Did this page help you?