1

I am trying to import variables from 2WattTues and 2WattWed to 2WattThur but I get this error, what can I do?

enter image description here

abhijat_saxena
  • 705
  • 5
  • 20

2 Answers2

1

Try importing like this

wattTues = __import__('2WattTues')


For performing import * check this out -
How does one do the equivalent of "import * from module" with Python's __import__ function?

abhijat_saxena
  • 705
  • 5
  • 20
0

Names of variables, modules (etc.) cannot start with a digit.

Ozmium42
  • 3
  • 3
  • 1
    Strictly speaking, *identifiers* cannot start with a digit. It's a syntactic issue, not a limitation of the data model. – chepner May 17 '20 at 13:17