-1

I've been doing some searching but I couldn't find any consensus on the syntax allowed for imports.

I threw an syntax error for this import and was wondering if there was documentation on allowable syntax.

import some-module

# Do stuff.
kuro
  • 1
  • 1

1 Answers1

1

You can't use hyphen('-') symbol in any names in Python as this is regarded as substraction operator. Use underscore ('_') instead.

user2976612
  • 145
  • 1
  • 8