Basically, I have a lot of functions that have a similar name (p1()
, p2()
, p3()
, ...
, p20()
) and I don't want to call them all by hand. I want to do something like this:
for i in range(1, 21):
p{i}()
But that doesn't seem to work. Is there some other way to go around this?