Using Table with arbitrary number of variables [duplicate]

Let $P=\{p_1,...p_n\}$. I would like a way to implent Table[Expression,{$p_1$,lim},{$p_2$,lim},...,{$p_n$,lim}] where n and lim are parameters defined by the user. Any ideas?

-

marked as duplicate by Mr.Wizard♦Jun 27 '15 at 9:56

Could you provide minimal example? – Kuba Jun 25 '14 at 19:51
This seems very familiar, assuming my interpretation is correct, but I can't find the original. Help, anyone? – Mr.Wizard Jun 26 '14 at 2:03
@Mr.Wizard I agree it seems familiar. This is the closest I've found: 5056 – Michael E2 Jun 26 '14 at 4:24
This question was closed and due for deletion. I feel that it could be useful as a redirect so I am marking it as a duplicate instead, even though the "original" is about Sum rather than Table. – Mr.Wizard Jun 27 '15 at 9:55

Table[expr,Evaluate[Sequence@@({#,lim}&/@Array[Subscript[p, #] &, n])]]

p0 = Array[Subscript[p, #] &, 7]