Printing with Artsy is very simple and straight.
The user can put “Quotation Marks” around a symbol and type the word print before to display the outcome.
# Example: declare a Statement
# Write print, add quotation marks, and end with a semicolon.
print "hello world";
# Display: hello world
The user can declare a variable and type the word print before to display the outcome.
# Example Declare Statement
# Use the keyword "int"
declare x as int;
# Define x
let x = 10;
# Finally, print it!
print x;
# Display: 10
The user can declare a string and type the word print before to display the outcome.
# Example Declare Statement
# Use the keyword "string"
declare x as string;
# Define x
let x = "hi";
# Finally, print it!
print x;
# Display: hi