<< pyDict scithon pyExec >>

scithon >> scithon > pyEquals

pyEquals

Checks if two values are equal or not.

Syntax

pyEquals(arg1, arg2)

Arguments

arg1

Value to be compared.

arg2

Value to be compared with.

Description

Compares the two arguments and returns the result; equivalent to arg1 == arg2. Arguments can be of type int, double, string, bool or python variable.

Example

--> Py = pyImport("builtins")
Py  = 

<module 'builtins' (built-in)>
--> a = Py.int(1)
a  = 

1
--> pyEquals(a,1)
ans  =

T

Report an issue
<< pyDict scithon pyExec >>