Printing with Artsy is very simple and straight.

Print Statement: Quotation Marks

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

Print Statement: Variables

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

Print Statement: Strings

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

Return to Homepage

Artsy Coding