IdentifiersΒΆ

Identifiers are case sensitive:

X = 1
x = 2

Here, X and x are two different variables.

Identifiers must start with a non-numeric character:

x123 = 99  # OK
123x = 99  # not OK

Identifiers may only contain alphanumeric characters and underscores:

x123_percent = 99  # OK
x123% = 99         # not OK
%^ = 99            # not OK

The following is a list of reserved keywords supported in the SNAPpy language which cannot be used as identifiers:

and

def

else

global

is

or

True

break

del

from

if

None

pass

return

continue

elif

False

import

not

print

while

for

in

The following identifiers are reserved, but they are not yet supported in SNAPpy: as, assert, class, except, exec, finally, lambda, raise, try, with, yield.