4

For example something like this:
\long\def\for#1in#2#3{\expandafter\def\csname b:\string#1\endcsname{#3}%
\forinA#1#2,,}
\def\forinA#1#2,{\ifx,#2,\else
\def#1{#2}\csname b:\string#1\endcsname \expandafter\forinA\expandafter#1\fi}
\for\i in{a, bc, d}
{%
\for\j in{A, B, C}
{%
i=...