Python Forum
My first complex(ish) code .
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first complex(ish) code .
#2
imports should generally be at the top of file, so you should move line 10.

There are exceptions, generally when the item being imported is generated by the script being run (or by one of the other imported modules) in which case, importlib is used to dynamically import package after being generated.
Underscore likes this post
Reply


Messages In This Thread
My first complex(ish) code . - by DUDDLEGOD - Jun-19-2021, 08:30 AM
RE: My first complex(ish) code . - by Larz60+ - Jun-19-2021, 11:17 AM
RE: My first complex(ish) code . - by DUDDLEGOD - Jun-21-2021, 07:27 AM
RE: My first complex(ish) code . - by Yoriz - Jun-19-2021, 11:51 AM
RE: My first complex(ish) code . - by perfringo - Jun-19-2021, 12:16 PM
RE: My first complex(ish) code . - by DUDDLEGOD - Jun-21-2021, 07:31 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020