Opa

Comments Off on Opa

opa
print "Hello World!"

Explanation:

  • print is the keyword used to output text to the console in Opa.
  • "Hello World!" is the string literal that will be printed.

How to run it:

  1. Save the code: Save the code above in a file named hello.opa.
  2. Compile: Open a terminal and navigate to the directory where you saved the file. Compile the code using the Opa compiler: opa compile hello.opa
  3. Run: Execute the compiled program: ./hello (or hello.exe on Windows).

You should see “Hello World!” printed to your console.

Prompt

Negative prompt

Text model: gemma3

Image model: ArtsyLite