0

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
Armut
  • 969
  • 8
  • 22

0 Answers0