Wolfram Language Fast Introduction for Programmers
Get Started »

Interactive Usage

The Wolfram Language is interpreted, meaning any piece of code can be run immediately. Java code must be compiled before execution, making truly interactive programming impossible.

You can use the Wolfram Language interactively, like a much-enhanced version of the Python interactive shell that supports immediate code assistance, graphics, inline interfaces, etc.

In a Wolfram notebook on the desktop or web, just type an input, then press
SHIFT+ENTER to compute:

In[1]:=
X
Out[1]=
In[2]:=
X
Out[2]=

In[n] and Out[n] label successive inputs and outputs. You can refer to the most recent output as %—though it’s usually better to define a variable.

% in the Wolfram Language serves a similar role to _ in the Python interactive shell.