Dear all,
I get an error when I run the command --tuples--(SSC).

sysuse auto,clear
global m mpg rep78 weight length turn trunk foreign
tuples $m ,conditionals(1&2) max(5) asis
dis `ntuples'

Traceback (most recent call last):
File "/Applications/Stata 17/ado/plus/py/st_tuples_py.py", line 33, in <module
> >
exec("tuplelist = list(filter(lambda tupl: " + py_condits + ", tuplelist))")
File "<string>", line 1
tuplelist = list(filter(lambda tupl: ("mpg" in tupl and "rep"foreign" in tup
> l8" in tupl), tuplelist))
^
SyntaxError: invalid syntax
failed to execute the specified Python script file
r(7103);

end of do-file

r(7103);


Any help will be appreciated.

Best
Raymond