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
  • 683
  • 6
  • 19

0 Answers0