Python Forum
Lots of code. Creating modules
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lots of code. Creating modules
#2
When you import a module, it has different functions within it. If you look at your usage of the math module, you are using math.sqrt, not just sqrt. You should do the same thing with your imports from the geometry module, like this: geometry.myfunction()

Also, please use code tags next time you post. Just put [python] before the code, and the same thing with /python after it.
Reply


Messages In This Thread
Lots of code. Creating modules - by jwhenson1990 - Oct-12-2017, 10:51 PM
RE: Lots of code. Creating modules - by Lux - Oct-12-2017, 11:21 PM
RE: Lots of code. Creating modules - by gruntfutuk - Oct-13-2017, 08:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code: Creating a basic python game? searching1 5 3,433 Nov-12-2018, 05:18 AM
Last Post: searching1
  Creating code to make up to 4 turtle move simultaneously in a random heading J0k3r 3 5,490 Mar-05-2018, 03:48 PM
Last Post: mpd

Forum Jump:

User Panel Messages

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