The following doesn't work, probably because packages is a list of strings. Is there any way to have such a loop in python?
packages=['numpy','scipy']
for p in packages:
import p
The following doesn't work, probably because packages is a list of strings. Is there any way to have such a loop in python?
packages=['numpy','scipy']
for p in packages:
import p